Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-07-11 19:22:34 +03:00
1 parent 35f081eaf4
commit 62eb0fa592
2 files changed
+6 -4

No files matched your search

+2 -3
View File
@@ -71,14 +71,13 @@ export class Cluster implements ClusterModel {
async init(proxyPort: number) {
try {
this.proxyPort = proxyPort;
this.contextHandler = new ContextHandler(this);
this.kubeconfigManager = new KubeconfigManager(this, this.contextHandler);
this.url = this.getKubeconfig().getCurrentCluster().server;
this.proxyUrl = `http://localhost:${proxyPort}`;
this.kubeProxyUrl = this.proxyUrl + apiKubePrefix;
this.webContentUrl = `http://${this.id}.localhost:${proxyPort}`;
this.contextHandler = new ContextHandler(this);
this.kubeconfigManager = new KubeconfigManager(this, this.contextHandler);
await this.refreshStatus();
this.initialized = true;