kubernetes/pkg/registry/core
Antonio Ojea 51f614a156 ipallocator: handle errors correctly
The ipallocator was blindly assuming that all errors are retryable, that
causes that the allocator tries to exhaust all the possibilities to
allocate an IP address.

If the error is not retryable this means the allocator will generate as
many API calls as existing available IPs are in the allocator, causing
CPU exhaustion since this requests are coming from inside the apiserver.

In addition to handle the error correctly, this patch also interpret the
error to return the right status code depending on the error type.

Co-authored-by: carlory <baofa.fan@daocloud.io>
2025-12-03 10:39:57 +00:00
..
componentstatus chore: use NotFound error for missing components 2025-01-28 17:29:30 -08:00
configmap remove import doc comments 2024-12-02 16:59:34 +01:00
endpoint Add warnings to all IP/CIDR-valued fields 2025-03-07 11:00:11 -05:00
event remove import doc comments 2024-12-02 16:59:34 +01:00
limitrange remove import doc comments 2024-12-02 16:59:34 +01:00
namespace Fix tests to to only accesses keys from under resourcePrefix 2025-09-10 14:49:58 +02:00
node feat: Implement node declared features reporting and validation. 2025-11-06 00:51:39 +00:00
persistentvolume Bump k8s.io/kube-openapi to latest SHA (f3f2b991d03b) 2025-07-14 07:24:48 -04:00
persistentvolumeclaim Automated refactoring to use SetFeatureGatesDuringTest 2025-10-01 21:10:53 -07:00
pod Modifying validation logic and pod strategy for PodResize to accommodate for Pod Level Resources resize 2025-11-11 18:15:22 +00:00
podtemplate remove import doc comments 2024-12-02 16:59:34 +01:00
rangeallocation Add sig OWNERS to registry packages 2023-10-31 01:20:16 +00:00
replicationcontroller fix validation_test.go to use path normalization 2025-10-16 17:40:19 +00:00
resourcequota Warn when quota request > limit 2025-10-03 10:58:35 -07:00
rest Add synthetic create authz check to pods/exec, pods/attach, pods/portforward 2025-10-21 18:26:06 +00:00
secret remove import doc comments 2024-12-02 16:59:34 +01:00
service ipallocator: handle errors correctly 2025-12-03 10:39:57 +00:00
serviceaccount Add TokenRequestServiceAccountUIDValidation feature gate with UID validation 2025-07-10 23:20:23 -05:00
OWNERS Cleanup OWNERS files (No Activity in the last year) 2021-12-15 10:34:02 -05:00