Re-create proxyKubeconfig also if path is ''

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2021-03-22 16:41:13 +02:00
1 parent 4a0ba52282
commit 3e6a2b2026
1 file changed
+1 -1
+1 -1
View File
@@ -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) {