kubernetes/pkg/registry/core
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
..
componentstatus Add singular name for the rest of types 2022-11-18 12:21:13 +03:00
configmap Add singular name for the rest of types 2022-11-18 12:21:13 +03:00
endpoint Remove GetSingularName for subresources 2022-11-18 12:21:19 +03:00
event Add singular name for the rest of types 2022-11-18 12:21:13 +03:00
limitrange Add singular name for the rest of types 2022-11-18 12:21:13 +03:00
namespace Remove GetSingularName for subresources 2022-11-18 12:21:19 +03:00
node Add integration test to test singularnames for all resources 2022-11-21 09:59:37 +03:00
persistentvolume Remove GetSingularName for subresources 2022-11-18 12:21:19 +03:00
persistentvolumeclaim Remove GetSingularName for subresources 2022-11-18 12:21:19 +03:00
pod Merge pull request #114086 from xmcqueen/113935 2023-01-13 07:36:28 -08:00
podtemplate Add singular name for the rest of types 2022-11-18 12:21:13 +03:00
rangeallocation hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
replicationcontroller Merge pull request #113542 from ardaguclu/fix-shortname-disperancy 2023-01-03 09:29:43 -08:00
resourcequota Remove GetSingularName for subresources 2022-11-18 12:21:19 +03:00
rest Remove EphemeralContainers feature-gate checks 2022-07-26 02:55:30 +02:00
secret Merge pull request #113581 from aimuz/verify-tls-secret 2023-01-04 14:29:58 -08:00
service Fix panic on ClusterIP allocation for /28 subnets 2023-01-25 20:32:40 +00:00
serviceaccount Remove GetSingularName for subresources 2022-11-18 12:21:19 +03:00
OWNERS Cleanup OWNERS files (No Activity in the last year) 2021-12-15 10:34:02 -05:00