@@ -83,11 +83,11 @@ func (a *IPAMClaimsValet) Handle(ctx context.Context, request admission.Request)
8383 return admission .Errored (http .StatusBadRequest , err )
8484 }
8585
86- log .Info ("webhook handling event" )
86+ log .V ( 1 ). Info ("webhook handling event" )
8787
8888 vmName , hasVMAnnotation := pod .Annotations ["kubevirt.io/domain" ]
8989 if ! hasVMAnnotation {
90- log .Info (
90+ log .V ( 1 ). Info (
9191 "does not have the kubevirt VM annotation" ,
9292 )
9393 return admission .Allowed ("not a VM" )
@@ -191,7 +191,7 @@ func (a *IPAMClaimsValet) Handle(ctx context.Context, request admission.Request)
191191 return admission .Errored (http .StatusInternalServerError , err )
192192 }
193193
194- log .Info ("new pod annotations" , "pod" , newPod .Annotations )
194+ log .V ( 1 ). Info ("new pod annotations" , "pod" , newPod .Annotations )
195195 return admission .PatchResponseFromRaw (request .Object .Raw , marshaledPod )
196196 }
197197
@@ -275,7 +275,7 @@ func ensureIPAMClaimRefAtNetworkSelectionElements(ctx context.Context,
275275 hasChangedNetworkSelectionElements := false
276276 for i , networkSelectionElement := range networkSelectionElements {
277277 nadName := fmt .Sprintf ("%s/%s" , networkSelectionElement .Namespace , networkSelectionElement .Name )
278- log .Info (
278+ log .V ( 1 ). Info (
279279 "iterating network selection elements" ,
280280 "NAD" , nadName ,
281281 )
@@ -369,7 +369,7 @@ func primaryNetworkConfig(
369369) (* config.RelevantConfig , error ) {
370370 log := logf .FromContext (ctx )
371371
372- log .Info (
372+ log .V ( 1 ). Info (
373373 "Looking for primary network config" ,
374374 "vmi" ,
375375 client .ObjectKeyFromObject (vmi ),
@@ -381,7 +381,7 @@ func primaryNetworkConfig(
381381 }
382382
383383 if primaryNetworkNAD == nil {
384- log .Info (
384+ log .V ( 1 ). Info (
385385 "Did not find primary network config" ,
386386 "namespace" , vmi .Namespace ,
387387 )
0 commit comments