fix wrong comment on method to detect IPs out of ranges

This commit is contained in:
Antonio Ojea 2024-06-27 11:41:47 +00:00
parent 967ad95b53
commit 69360e9b5e

View File

@ -530,7 +530,7 @@ func (r *RepairIPAddress) syncIPAddress(key string) error {
} }
// isIPOutOfRange returns false if the IP is not contained in any of the ServiceCIDRs // isIPOutOfRange returns true if the IP is not contained in any of the ServiceCIDRs
func (r *RepairIPAddress) isIPOutOfRange(ip net.IP) bool { func (r *RepairIPAddress) isIPOutOfRange(ip net.IP) bool {
return len(servicecidr.ContainsIP(r.serviceCIDRLister, ip)) == 0 return len(servicecidr.ContainsIP(r.serviceCIDRLister, ip)) == 0
} }