Skip to content

Commit 09b2f13

Browse files
authored
fix the wrong lister used (#422)
1 parent 05b702a commit 09b2f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/netpol/network_policy_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ func (npc *NetworkPolicyController) ListPodsByNamespaceAndLabels(namespace strin
12331233
}
12341234

12351235
func (npc *NetworkPolicyController) ListNamespaceByLabels(set labels.Set) ([]*api.Namespace, error) {
1236-
namespaceLister := listers.NewNamespaceLister(npc.npLister)
1236+
namespaceLister := listers.NewNamespaceLister(npc.nsLister)
12371237
matchedNamespaces, err := namespaceLister.List(set.AsSelector())
12381238
if err != nil {
12391239
return nil, err

0 commit comments

Comments
 (0)