aboutsummaryrefslogtreecommitdiffstats
path: root/src/k8splugin/internal/app/client.go
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@orange.com>2021-10-12 00:16:51 +0200
committerLukasz Rajewski <lukasz.rajewski@orange.com>2021-10-12 00:20:56 +0200
commit7e265aa8286a5e77ddc63fe2f9e20c776792e2f1 (patch)
treeb86cf4d75675365e569e45d1ada45c77b9f65cee /src/k8splugin/internal/app/client.go
parent2d9e8566cbd81e6feb7e3068f6ff089fdc3a93d9 (diff)
Fixed Query api filtering of resources for Instance
Issue-ID: MULTICLOUD-1409 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: Id91d121fab264ccbe0096c99bcc29c18e7ee3b2b
Diffstat (limited to 'src/k8splugin/internal/app/client.go')
-rw-r--r--src/k8splugin/internal/app/client.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/k8splugin/internal/app/client.go b/src/k8splugin/internal/app/client.go
index f70dc0a5..a2868cd5 100644
--- a/src/k8splugin/internal/app/client.go
+++ b/src/k8splugin/internal/app/client.go
@@ -256,6 +256,7 @@ func (k *KubernetesClient) queryResources(apiVersion, kind, labelSelector, names
LabelSelector: labelSelector,
}
var unstrList *unstructured.UnstructuredList
+ dynClient.Resource(gvr).Namespace(namespace).List(context.TODO(), opts)
switch mapping.Scope.Name() {
case meta.RESTScopeNameNamespace:
unstrList, err = dynClient.Resource(gvr).Namespace(namespace).List(context.TODO(), opts)