mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
fix wrong comment on method to detect IPs out of ranges
This commit is contained in:
parent
967ad95b53
commit
69360e9b5e
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user