From b71e71cdfcc16c6d2ae58ab84b8bc4482494cdff Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Fri, 23 Jul 2021 12:48:49 -0400 Subject: [PATCH] Fix entity accessibleNamespaces (#3507) Signed-off-by: Sebastian Malton --- src/main/cluster-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cluster-manager.ts b/src/main/cluster-manager.ts index 0a33fd84087d..56ce234e90d8 100644 --- a/src/main/cluster-manager.ts +++ b/src/main/cluster-manager.ts @@ -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); }