From 70b5bbd7ff11855c1188c5a4362ff84bb0764660 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Fri, 23 Oct 2020 10:05:44 +0300 Subject: [PATCH] Test is user cluster admin on cluster activate (#1116) 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 9c4afd71d0..c8bb850ed9 100644 --- a/src/main/cluster.ts +++ b/src/main/cluster.ts @@ -138,6 +138,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