mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
[e2epod] wait: Don't retry on 50X errors
This commit is contained in:
parent
c809129f2c
commit
55ec0f2d9d
@ -713,7 +713,7 @@ func shouldRetry(err error) (retry bool, retryAfter time.Duration) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// these errors indicate a transient error that should be retried.
|
// these errors indicate a transient error that should be retried.
|
||||||
if apierrors.IsInternalError(err) || apierrors.IsTimeout(err) || apierrors.IsTooManyRequests(err) {
|
if apierrors.IsTimeout(err) || apierrors.IsTooManyRequests(err) {
|
||||||
return true, 0
|
return true, 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user