From 09b2f13e138b04b45ed8b6276c4cfe15de1fe490 Mon Sep 17 00:00:00 2001 From: Murali Reddy Date: Fri, 4 May 2018 18:04:57 +0530 Subject: [PATCH] fix the wrong lister used (#422) --- pkg/controllers/netpol/network_policy_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controllers/netpol/network_policy_controller.go b/pkg/controllers/netpol/network_policy_controller.go index ba011163a..e7b1ebc1d 100644 --- a/pkg/controllers/netpol/network_policy_controller.go +++ b/pkg/controllers/netpol/network_policy_controller.go @@ -1233,7 +1233,7 @@ func (npc *NetworkPolicyController) ListPodsByNamespaceAndLabels(namespace strin } func (npc *NetworkPolicyController) ListNamespaceByLabels(set labels.Set) ([]*api.Namespace, error) { - namespaceLister := listers.NewNamespaceLister(npc.npLister) + namespaceLister := listers.NewNamespaceLister(npc.nsLister) matchedNamespaces, err := namespaceLister.List(set.AsSelector()) if err != nil { return nil, err