kubernetes/pkg/registry/core/service
Antonio Ojea ea99593fa1 Fix panic on ClusterIP allocation for /28 subnets
The ClusterIP allocator tries to reserve on part of the ServiceCIDR
to allocate static IPs to the Services.

The heuristic of the allocator to obtain the offset was taking into
account the whole range size, not the IPs available in the range, the
subnet address and the broadcast address for IPv4 are not available.

This caused that for CIDRs with 16 hosts, /28 for IPv4 and /124 for
IPv6, the offset calculated was higher than the max number of available
addresses on the allocator, causing this to panic.

Change-Id: I6c6f527b0a600b3612be37769e405b8fb3dd33a8
2023-01-25 20:32:40 +00:00
..
allocator Fix panic on ClusterIP allocation for /28 subnets 2023-01-25 20:32:40 +00:00
ipallocator Fix panic on ClusterIP allocation for /28 subnets 2023-01-25 20:32:40 +00:00
portallocator Generate and format files 2022-07-26 13:14:05 -04:00
storage Merge pull request #113542 from ardaguclu/fix-shortname-disperancy 2023-01-03 09:29:43 -08:00
doc.go
proxy.go Remove GetSingularName for subresources 2022-11-18 12:21:19 +03:00
strategy_test.go pkg/registry: Replace deprecated pointer function 2023-01-04 10:38:09 +01:00
strategy.go Services API: warnings 2022-12-16 11:54:05 +00:00