tweak KubeAuthProxy.run() return behaviour

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann committed 2021-07-21 09:08:30 -04:00
1 parent 1b399fab01
commit 584021d094
1 file changed
+4 -4
+4 -4
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;