Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(NPC): update IPBlocks to be ipFamily specific
Previously, IPBlocks (like srcIPBlocks) only contained a single IP Family which meant that a len() > 0 would indicate that an IP block had been defined in the NetworkPolicy. However, now the IPBlocks structs are IP family specific which means that they will always contain 2 entries, one for the IPv4 family and one of the IPv6 family. Which means that this condition will evaluate to true for all NetworkPolicies and waste system resources creating empty ipsets and bad iptables rules.
- Loading branch information