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

don't use list all optimization when operating in accessible namespaces mode (#2142)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-02-12 10:59:58 -05:00 committed by GitHub
parent 557d96d484
commit 4513a08b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ export abstract class KubeObjectStore<T extends KubeObject = any> extends ItemSt
const isLoadingAll = this.context.allNamespaces.every(ns => namespaces.includes(ns)); const isLoadingAll = this.context.allNamespaces.every(ns => namespaces.includes(ns));
if (isLoadingAll) { if (isLoadingAll && this.context.cluster.accessibleNamespaces.length === 0) {
this.loadedNamespaces = []; this.loadedNamespaces = [];
return api.list({}, this.query); return api.list({}, this.query);