mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Address comment and remove if condition
This commit is contained in:
		@@ -325,7 +325,6 @@ func (o *AuditOptions) ApplyTo(
 | 
			
		||||
		if checker == nil {
 | 
			
		||||
			klog.V(2).Info("No audit policy file provided, no events will be recorded for webhook backend")
 | 
			
		||||
		} else {
 | 
			
		||||
 | 
			
		||||
			if c.EgressSelector != nil {
 | 
			
		||||
				egressDialer, err := c.EgressSelector.Lookup(egressselector.Master.AsNetworkContext())
 | 
			
		||||
				if err != nil {
 | 
			
		||||
 
 | 
			
		||||
@@ -29,6 +29,7 @@ go_library(
 | 
			
		||||
        "//staging/src/k8s.io/apimachinery/pkg/util/validation:go_default_library",
 | 
			
		||||
        "//staging/src/k8s.io/apimachinery/pkg/util/validation/field:go_default_library",
 | 
			
		||||
        "//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
 | 
			
		||||
        "//staging/src/k8s.io/apiserver/pkg/server/egressselector:go_default_library",
 | 
			
		||||
        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
			
		||||
        "//staging/src/k8s.io/client-go/tools/clientcmd:go_default_library",
 | 
			
		||||
        "//staging/src/k8s.io/client-go/tools/clientcmd/api:go_default_library",
 | 
			
		||||
 
 | 
			
		||||
@@ -96,9 +96,7 @@ func newGenericWebhook(scheme *runtime.Scheme, codecFactory serializer.CodecFact
 | 
			
		||||
	codec := codecFactory.LegacyCodec(groupVersions...)
 | 
			
		||||
	clientConfig.ContentConfig.NegotiatedSerializer = serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{Serializer: codec})
 | 
			
		||||
 | 
			
		||||
	if customDial != nil {
 | 
			
		||||
		clientConfig.Dial = customDial
 | 
			
		||||
	}
 | 
			
		||||
	clientConfig.Dial = customDial
 | 
			
		||||
 | 
			
		||||
	restClient, err := rest.UnversionedRESTClientFor(clientConfig)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user