kubernetes/pkg
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
..
api Merge pull request #115035 from xing-yang/update_plugin_warning 2023-01-13 12:08:26 -08:00
apis Merge pull request #115193 from SataQiu/update-storage-api-20230119 2023-01-19 13:44:15 -08:00
auth Merge pull request #105598 from gy95/match 2022-01-05 09:22:38 -08:00
capabilities initialize capabilities unit test 2021-03-13 10:53:47 +01:00
client delete unused functions in pkg directory 2023-01-16 21:43:36 +08:00
cloudprovider Remove OpenStack cloud provider 2022-11-11 12:04:55 +01:00
cluster/ports e2e_node/{service,util}: use kubelet healthz port. 2022-04-22 16:14:31 -07:00
controller Merge pull request #110838 from soltysh/cronjob_improvements 2023-01-18 09:44:34 -08:00
controlplane apiserver: update serialization version priority for policy API 2023-01-19 14:42:26 +08:00
credentialprovider delete unused functions in pkg directory 2023-01-16 21:43:36 +08:00
features Merge pull request #115163 from SataQiu/lock-AdvancedAuditing-gate-20230118 2023-01-18 07:12:41 -08:00
fieldpath Fix quotes that trip up gofmt 2022-07-26 13:14:04 -04:00
generated Merge pull request #114393 from danielvegamyhre/myfeature 2023-01-13 17:28:15 -08:00
kubeapiserver Merge pull request #114523 from zshihang/token 2023-01-18 07:12:33 -08:00
kubectl Refactor to simplify factory Validator 2022-12-11 18:20:28 -08:00
kubelet add scale test for probes 2023-01-22 16:57:41 +00:00
kubemark Merge pull request #114725 from danwinship/kube-proxy-startup-cleanup 2023-01-05 13:57:59 -08:00
printers kubectl: remove psp support 2023-01-06 17:07:02 +08:00
probe use custom dialer for http probes 2023-01-22 16:57:41 +00:00
proxy Merge pull request #114094 from Nanfei-Chen/master 2023-01-22 16:30:09 -08:00
quota/v1 Use https links for k8s KEPs, issues, PRs, etc 2022-09-23 23:36:24 +00:00
registry Fix panic on ClusterIP allocation for /28 subnets 2023-01-25 20:32:40 +00:00
routes unittests: Fixes unit tests for Windows (part 3) 2022-10-21 19:25:48 +03:00
scheduler Merge pull request #114889 from sanposhiho/skip/inter-pod-affinity 2023-01-18 20:36:35 -08:00
security delete unused functions in pkg directory 2023-01-16 21:43:36 +08:00
securitycontext delete unused functions in pkg directory 2023-01-16 21:43:36 +08:00
serviceaccount Update pkg/serviceaccount/legacy.go 2022-12-16 12:54:52 -08:00
util delete unused functions in pkg/util directory 2023-01-16 17:22:35 +08:00
volume delete unused functions in pkg/volume directory 2023-01-16 21:19:11 +08:00
windows/service Fix typo at pkg/windows/service/service.go:94 2022-03-24 07:25:33 -04:00
.import-restrictions cmd/api/testing no longer overrides pkg's rules 2020-04-28 08:46:49 -07:00
OWNERS Move root approvers to subdirs 2022-10-10 13:43:03 -04:00