Added kubectl command inline
This commit is contained in:
parent
bb6a6396dc
commit
dfcdcc296f
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue