1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

use cluster.accessible

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-06-01 08:48:42 +03:00
parent 950bf4ad3c
commit 3b0b6a5dc3

View File

@ -101,7 +101,7 @@ export class ClusterManager extends Singleton {
}
protected updateEntityStatus(entity: KubernetesCluster, cluster: Cluster) {
entity.status.phase = (cluster.ready && cluster.available && cluster.allowedNamespaces.length > 0) ? "connected" : "disconnected";
entity.status.phase = cluster.accessible ? "connected" : "disconnected";
}
@action syncClustersFromCatalog(entities: KubernetesCluster[]) {