set default verbosity as 0 when dry run strategy is none

Signed-off-by: Kanika Rana <krana@redhat.com>
This commit is contained in:
Kanika Rana 2025-09-24 15:20:53 -04:00
parent 6dee3d61d4
commit 631d429e2c

View file

@ -334,7 +334,7 @@ func (k *kubectlResourceOperations) ApplyResource(ctx context.Context, obj *unst
span.SetBaggageItem("kind", obj.GetKind())
span.SetBaggageItem("name", obj.GetName())
defer span.Finish()
logWithLevel := k.log
logWithLevel := k.log.V(0)
if dryRunStrategy != cmdutil.DryRunNone {
logWithLevel = logWithLevel.V(1)
}