File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
staging/src/k8s.io/apiserver/pkg/util/webhook Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import (
26
26
"k8s.io/apimachinery/pkg/runtime"
27
27
"k8s.io/apimachinery/pkg/runtime/schema"
28
28
"k8s.io/apimachinery/pkg/runtime/serializer"
29
- "k8s.io/apimachinery/pkg/util/net"
30
29
utilnet "k8s.io/apimachinery/pkg/util/net"
31
30
"k8s.io/apimachinery/pkg/util/wait"
32
31
"k8s.io/client-go/rest"
@@ -51,7 +50,7 @@ type GenericWebhook struct {
51
50
// Otherwise it returns false for an immediate fail.
52
51
func DefaultShouldRetry (err error ) bool {
53
52
// these errors indicate a transient error that should be retried.
54
- if net .IsConnectionReset (err ) || apierrors .IsInternalError (err ) || apierrors .IsTimeout (err ) || apierrors .IsTooManyRequests (err ) {
53
+ if utilnet .IsConnectionReset (err ) || apierrors .IsInternalError (err ) || apierrors .IsTimeout (err ) || apierrors .IsTooManyRequests (err ) {
55
54
return true
56
55
}
57
56
// if the error sends the Retry-After header, we respect it as an explicit confirmation we should retry.
You can’t perform that action at this time.
0 commit comments