Replace kubectl-proxy with lens-k8s-proxy (#4924)

This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2022-02-28 09:37:29 -05:00
1 parent f5a7d64551
commit c04a3b8d33
10 files changed
+191 -31

No files matched your search

+1 -1
View File
@@ -118,7 +118,7 @@ export class ContextHandler {
await this.ensureServer();
const path = this.clusterUrl.path !== "/" ? this.clusterUrl.path : "";
return `http://127.0.0.1:${this.kubeAuthProxy.port}${this.kubeAuthProxy.apiPrefix}${path}`;
return `http://127.0.0.1:${this.kubeAuthProxy.port}${this.kubeAuthProxy.apiPrefix.slice(0, -1)}${path}`;
}
async getApiTarget(isLongRunningRequest = false): Promise<httpProxy.ServerOptions> {