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:
parent
4a0ba52282
commit
3e6a2b2026
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user