Skip to content

Commit

Permalink
Fix entity accessibleNamespaces (#3507)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Malton <[email protected]>
  • Loading branch information
Nokel81 authored Jul 23, 2021
1 parent c8f27e5 commit b71e71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/cluster-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b71e71c

Please sign in to comment.