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:
parent
91edd62547
commit
53d2c43382
@ -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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user