From c4804de6f6d07b7af96842ff910fafde078a8b59 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Fri, 23 Oct 2020 20:35:16 +0300 Subject: [PATCH] Test is user cluster admin on cluster activate (#1122) Signed-off-by: Lauri Nevala --- src/main/cluster.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/cluster.ts b/src/main/cluster.ts index 0175743fec..ad87a1ca0f 100644 --- a/src/main/cluster.ts +++ b/src/main/cluster.ts @@ -142,6 +142,7 @@ export class Cluster implements ClusterModel { await this.refreshConnectionStatus() if (this.accessible) { await this.refreshAllowedResources() + this.isAdmin = await this.isClusterAdmin() this.ready = true this.kubeCtl = new Kubectl(this.version) this.kubeCtl.ensureKubectl() // download kubectl in background, so it's not blocking dashboard