diff --git a/pkg/registry/core/service/ipallocator/controller/repairip.go b/pkg/registry/core/service/ipallocator/controller/repairip.go index d263581adbe..1e420ea8a8d 100644 --- a/pkg/registry/core/service/ipallocator/controller/repairip.go +++ b/pkg/registry/core/service/ipallocator/controller/repairip.go @@ -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 { return len(servicecidr.ContainsIP(r.serviceCIDRLister, ip)) == 0 }