From 69360e9b5e21ff20465b18f001e3d5680392cd8c Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Thu, 27 Jun 2024 11:41:47 +0000 Subject: [PATCH] fix wrong comment on method to detect IPs out of ranges --- pkg/registry/core/service/ipallocator/controller/repairip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }