TooManyRequests(429) should have a non-empty RetryAfter when evicting a pod is not allowed #36409
Labels
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
sig/apps
Categorizes an issue or PR as relevant to SIG Apps.
This is a FEATURE REQUEST.
AFAIK, eviciton is first used in
kubectl drain
in #35483.If a eviction is not allowed, the caller will get a
429 Too Many Requests
, without a RetryAfter advice. See, thisIt looks like this:
{
"metadata": {},
"status": "Failure",
"message": "Cannot evict pod as it would violate the pod's disruption budget.",
"code": 429
}
It will be very helpful for
kubectl drain
and others to have a non-emptyRetryAfter
field.cc: @caesarxuchao
The text was updated successfully, but these errors were encountered: