From 3e6a2b202678fcf34bab1c9b21faf73f923e332f Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Mon, 22 Mar 2021 16:41:13 +0200 Subject: [PATCH] Re-create proxyKubeconfig also if path is '' Signed-off-by: Lauri Nevala --- src/main/kubeconfig-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kubeconfig-manager.ts b/src/main/kubeconfig-manager.ts index 2adb7852d6..ee4c0aa06d 100644 --- a/src/main/kubeconfig-manager.ts +++ b/src/main/kubeconfig-manager.ts @@ -32,7 +32,7 @@ export class KubeconfigManager { async getPath() { // create proxy kubeconfig if it is removed - if (this.tempFile && !(await fs.pathExists(this.tempFile))) { + if ((this.tempFile || this.tempFile === "") && !(await fs.pathExists(this.tempFile))) { try { this.tempFile = await this.createProxyKubeconfig(); } catch (err) {