mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix cluster's accessibleNamespaces being reset on restarting Lens (#3817)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
07d8d567de
commit
f68cbabbc9
2 files changed
+5
-1
No files matched your search
@@ -193,7 +193,10 @@ export class ClusterManager extends Singleton {
|
||||
} else {
|
||||
cluster.kubeConfigPath = entity.spec.kubeconfigPath;
|
||||
cluster.contextName = entity.spec.kubeconfigContext;
|
||||
cluster.accessibleNamespaces = entity.spec.accessibleNamespaces ?? [];
|
||||
|
||||
if (entity.spec.accessibleNamespace) {
|
||||
cluster.accessibleNamespaces = entity.spec.accessibleNamespaces;
|
||||
}
|
||||
|
||||
this.updateEntityFromCluster(cluster);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user