diff --git a/src/main/kubeconfig-manager.ts b/src/main/kubeconfig-manager.ts index b0234ab250..334c6d577a 100644 --- a/src/main/kubeconfig-manager.ts +++ b/src/main/kubeconfig-manager.ts @@ -32,7 +32,7 @@ export class KubeconfigManager { getPath() { // create proxy kubeconfig if it is removed - if (!this.tempFile || !fs.pathExistsSync(this.tempFile)) { + if (this.tempFile && !fs.pathExistsSync(this.tempFile)) { this.tempFile = this.createProxyKubeconfig(); }