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) {