From 4513a08b1fc0c00a0eb32f1421c2861c826e47f4 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Fri, 12 Feb 2021 10:59:58 -0500 Subject: [PATCH] don't use list all optimization when operating in accessible namespaces mode (#2142) Signed-off-by: Sebastian Malton --- src/renderer/kube-object.store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/kube-object.store.ts b/src/renderer/kube-object.store.ts index 943aae7ad0..023048cb73 100644 --- a/src/renderer/kube-object.store.ts +++ b/src/renderer/kube-object.store.ts @@ -111,7 +111,7 @@ export abstract class KubeObjectStore extends ItemSt const isLoadingAll = this.context.allNamespaces.every(ns => namespaces.includes(ns)); - if (isLoadingAll) { + if (isLoadingAll && this.context.cluster.accessibleNamespaces.length === 0) { this.loadedNamespaces = []; return api.list({}, this.query);