Added kubectl command inline

This commit is contained in:
Dunemask 2022-08-21 00:11:11 +00:00
parent bb6a6396dc
commit dfcdcc296f

View file

@ -2,7 +2,7 @@ import cp from "node:child_process";
import { jobBuilder, createFile, deleteFile } from "./k8s-common.js";
const applyFile = async (filePath) => {
const command = `${kubCmd} ${filePath}`;
const command = `kubectl apply -f ${filePath}`;
return new Promise((res, rej) =>
cp.exec(command, (err, stdout, stderr) => (err && rej(err)) || res(stdout))
);