Skip to content

Commit

Permalink
Update pkg/netpol/eval/internal/k8s/adminnetpol.go
Browse files Browse the repository at this point in the history
Co-authored-by: Adi Sosnovich <[email protected]>
  • Loading branch information
shireenf-ibm and adisos authored Sep 1, 2024
1 parent 62d874e commit 82ce0f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/netpol/eval/internal/k8s/adminnetpol.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func (anp *AdminNetworkPolicy) adminPolicyAffectsDirection(isIngress bool) bool
if isIngress {
return len(anp.Spec.Ingress) > 0
}
// ANPs with no egress rules do not affect egress traffic.
return len(anp.Spec.Egress) > 0
}

Expand Down

0 comments on commit 82ce0f0

Please sign in to comment.