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

Fix entity accessibleNamespaces (#3507)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-07-23 12:48:49 -04:00 committed by GitHub
parent c8f27e537b
commit b71e71cdfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ export class ClusterManager extends Singleton {
} else {
cluster.kubeConfigPath = entity.spec.kubeconfigPath;
cluster.contextName = entity.spec.kubeconfigContext;
cluster.accessibleNamespaces = entity.spec.accessibleNamespaces;
cluster.accessibleNamespaces = entity.spec.accessibleNamespaces ?? [];
this.updateEntityFromCluster(cluster);
}