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

tweak KubeAuthProxy.run() return behaviour

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann 2021-07-21 09:08:30 -04:00
parent 1b399fab01
commit 584021d094

View File

@ -67,7 +67,10 @@ export class KubeAuthProxy {
} }
public async run(): Promise<void> { public async run(): Promise<void> {
if (!this.proxyProcess) { if (this.proxyProcess) {
return this.whenReady;
}
const proxyBin = await this.kubectl.getPath(); const proxyBin = await this.kubectl.getPath();
const args = [ const args = [
"proxy", "proxy",
@ -113,9 +116,6 @@ export class KubeAuthProxy {
this.ready = true; this.ready = true;
} }
return this.whenReady;
}
protected parseError(data: string) { protected parseError(data: string) {
const error = data.split("http: proxy error:").slice(1).join("").trim(); const error = data.split("http: proxy error:").slice(1).join("").trim();
let errorMsg = error; let errorMsg = error;