diff --git a/pkg/registry/service/ip_allocator.go b/pkg/registry/service/ip_allocator.go index 21f475b3061..6fb288c1b1f 100644 --- a/pkg/registry/service/ip_allocator.go +++ b/pkg/registry/service/ip_allocator.go @@ -95,8 +95,8 @@ func newIPAllocator(subnet *net.IPNet) *ipAllocator { ipSpaceSize := int64(-1) ones, bits := subnet.Mask.Size() - if (bits-ones) < 63 { - ipSpaceSize = int64(1)<>= 8 - offset += result/256 // carry + offset += result / 256 // carry } return out }