Add accessibleNamespaces to KubernetesClusterModel (#3487)

Fixes #3485

Signed-off-by: Jan Jansen <jan.jansen@gdata.de>
This commit is contained in:
Jan Jansen authored and GitHub committed 2021-07-23 11:40:13 -04:00
1 parent eb0c0210e4
commit c8f27e537b
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -170,7 +170,8 @@ export class ClusterManager extends Singleton {
clusterName: entity.metadata.name
},
kubeConfigPath: entity.spec.kubeconfigPath,
contextName: entity.spec.kubeconfigContext
contextName: entity.spec.kubeconfigContext,
accessibleNamespaces: entity.spec.accessibleNamespaces
});
} catch (error) {
if (error.code === "ENOENT" && error.path === entity.spec.kubeconfigPath) {
@@ -182,6 +183,7 @@ export class ClusterManager extends Singleton {
} else {
cluster.kubeConfigPath = entity.spec.kubeconfigPath;
cluster.contextName = entity.spec.kubeconfigContext;
cluster.accessibleNamespaces = entity.spec.accessibleNamespaces;
this.updateEntityFromCluster(cluster);
}