mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
Merge pull request #118256 from aojea/svc_unavailable
e2e should retry if service is not available
This commit is contained in:
commit
ef00ff2148
@ -100,7 +100,10 @@ func ShouldRetry(err error) (retry bool, retryAfter time.Duration) {
|
||||
}
|
||||
|
||||
// these errors indicate a transient error that should be retried.
|
||||
if apierrors.IsTimeout(err) || apierrors.IsTooManyRequests(err) || errors.As(err, &transientError{}) {
|
||||
if apierrors.IsTimeout(err) ||
|
||||
apierrors.IsTooManyRequests(err) ||
|
||||
apierrors.IsServiceUnavailable(err) ||
|
||||
errors.As(err, &transientError{}) {
|
||||
return true, 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user