mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-02 14:51:58 +00:00
Merge pull request #60209 from shyamjvs/retry-rc-creation-in-test-framework
Automatic merge from submit-queue (batch tested with PRs 60377, 60209). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add smart retries to resource creations in testing framework Fix https://github.com/kubernetes/kubernetes/issues/55860 /cc @wojtek-t ```release-note NONE ```
This commit is contained in:
@@ -5110,6 +5110,7 @@ func DumpDebugInfo(c clientset.Interface, ns string) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Get rid of this duplicate function in favour of the one in test/utils.
|
||||
func IsRetryableAPIError(err error) bool {
|
||||
return apierrs.IsTimeout(err) || apierrs.IsServerTimeout(err) || apierrs.IsTooManyRequests(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user