From 9ddda3d176e013b47a2bba6133f830bf87e6cfe6 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Tue, 28 Jul 2020 14:25:02 +0300 Subject: [PATCH] Use quotas in resource applier's kubeconfig path Signed-off-by: Lauri Nevala --- src/main/resource-applier.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resource-applier.ts b/src/main/resource-applier.ts index b7d82308ac..bb3acc12e4 100644 --- a/src/main/resource-applier.ts +++ b/src/main/resource-applier.ts @@ -25,7 +25,7 @@ export class ResourceApplier { return new Promise((resolve, reject) => { const fileName = tempy.file({ name: "resource.yaml" }) fs.writeFileSync(fileName, content) - const cmd = `"${kubectlPath}" apply --kubeconfig ${kubeConfigPath} -o json -f ${fileName}` + const cmd = `"${kubectlPath}" apply --kubeconfig "${kubeConfigPath}" -o json -f ${fileName}` logger.debug("shooting manifests with: " + cmd); const execEnv: NodeJS.ProcessEnv = Object.assign({}, process.env) const httpsProxy = this.cluster.preferences?.httpsProxy @@ -54,7 +54,7 @@ export class ResourceApplier { resources.forEach((resource, index) => { fs.writeFileSync(path.join(tmpDir, `${index}.yaml`), resource); }) - const cmd = `"${kubectlPath}" apply --kubeconfig ${kubeConfigPath} -o json -f ${tmpDir}` + const cmd = `"${kubectlPath}" apply --kubeconfig "${kubeConfigPath}" -o json -f ${tmpDir}` console.log("shooting manifests with:", cmd); exec(cmd, (error, stdout, stderr) => { if (error) {