Remove double import of k8s.io/apimachinery/pkg/util/net
This commit is contained in:
		@@ -26,7 +26,6 @@ import (
 | 
			
		||||
	"k8s.io/apimachinery/pkg/runtime"
 | 
			
		||||
	"k8s.io/apimachinery/pkg/runtime/schema"
 | 
			
		||||
	"k8s.io/apimachinery/pkg/runtime/serializer"
 | 
			
		||||
	"k8s.io/apimachinery/pkg/util/net"
 | 
			
		||||
	utilnet "k8s.io/apimachinery/pkg/util/net"
 | 
			
		||||
	"k8s.io/apimachinery/pkg/util/wait"
 | 
			
		||||
	"k8s.io/client-go/rest"
 | 
			
		||||
@@ -51,7 +50,7 @@ type GenericWebhook struct {
 | 
			
		||||
// Otherwise it returns false for an immediate fail.
 | 
			
		||||
func DefaultShouldRetry(err error) bool {
 | 
			
		||||
	// these errors indicate a transient error that should be retried.
 | 
			
		||||
	if net.IsConnectionReset(err) || apierrors.IsInternalError(err) || apierrors.IsTimeout(err) || apierrors.IsTooManyRequests(err) {
 | 
			
		||||
	if utilnet.IsConnectionReset(err) || apierrors.IsInternalError(err) || apierrors.IsTimeout(err) || apierrors.IsTooManyRequests(err) {
 | 
			
		||||
		return true
 | 
			
		||||
	}
 | 
			
		||||
	// if the error sends the Retry-After header, we respect it as an explicit confirmation we should retry.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user