mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add accessibleNamespaces to KubernetesClusterModel (#3487)
Fixes #3485 Signed-off-by: Jan Jansen <jan.jansen@gdata.de>
This commit is contained in:
1 parent
eb0c0210e4
commit
c8f27e537b
2 files changed
+4
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user