Files
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
..
2024-12-02 16:59:34 +01:00
2024-12-02 16:59:34 +01:00
2024-12-02 16:59:34 +01:00
2024-12-02 16:59:34 +01:00
2024-12-02 16:59:34 +01:00