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

Fix NamespaceStore.allowedNamespaces

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-03-06 09:58:09 -05:00
parent 91edd62547
commit 53d2c43382

View File

@ -61,7 +61,10 @@ export class NamespaceStore extends KubeObjectStore<Namespace, NamespaceApi> {
} }
@computed get allowedNamespaces(): string[] { @computed get allowedNamespaces(): string[] {
return this.items.map(item => item.getName()); return Array.from(new Set([
...this.dependencies.context.allNamespaces, // allowed namespaces from cluster (main)
...this.items.map(item => item.getName()), // loaded namespaces from k8s api
].flat()));
} }
/** /**