We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a446a commit 5f58cd2Copy full SHA for 5f58cd2
app/controllers/network_policy_controller.go
@@ -636,7 +636,7 @@ func (npc *NetworkPolicyController) getFirewallEnabledPods(nodeIp string) (*map[
636
}
637
638
// An empty podSelector matches all pods in this namespace.
639
- if len(policy.Spec.PodSelector.MatchLabels) == 0 || len(policy.Spec.PodSelector.MatchExpressions) == 0 {
+ if len(policy.Spec.PodSelector.MatchLabels) == 0 && len(policy.Spec.PodSelector.MatchExpressions) == 0 {
640
podNeedsFirewall = true
641
break
642
0 commit comments