Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: properly calculate overal of node address with subnet filters
Example: host has address `10.0.0.1/8`, while Kubernetes pod CIDR is `10.244.0.0/16`. These two subnets overlap, but the address `10.0.0.1` isn't contained in the `10.244.0.0/16` subnet. This change fixes the check to make sure address is not contained vs. the address subnet overlaps with the filter. NB: this is still a bad idea to have host network subnet to overlap with Kubernetes pod/service CIDRs. Also refactor the unit-tests to use new (better ways) to do assertions. Signed-off-by: Andrey Smirnov <[email protected]>
- Loading branch information