1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Re-create proxyKubeconfig also if path is ''

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2021-03-22 16:41:13 +02:00
parent 4a0ba52282
commit 3e6a2b2026

View File

@ -32,7 +32,7 @@ export class KubeconfigManager {
async getPath() { async getPath() {
// create proxy kubeconfig if it is removed // 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 { try {
this.tempFile = await this.createProxyKubeconfig(); this.tempFile = await this.createProxyKubeconfig();
} catch (err) { } catch (err) {