Fix entity accessibleNamespaces (#3507)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-07-23 12:48:49 -04:00
1 parent c8f27e537b
commit b71e71cdfc
1 file changed
+1 -1
+1 -1
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);
}