From dfcdcc296ffd79adc101d841684784c78bfa6439 Mon Sep 17 00:00:00 2001 From: Dunemask Date: Sun, 21 Aug 2022 00:11:11 +0000 Subject: [PATCH] Added kubectl command inline --- lib/jobs/k8s/k8s.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jobs/k8s/k8s.js b/lib/jobs/k8s/k8s.js index 23aacf5..1059fe6 100644 --- a/lib/jobs/k8s/k8s.js +++ b/lib/jobs/k8s/k8s.js @@ -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)) );