Skip to content

Commit 2a50326

Browse files
committed
Written an inline fn to get string value of dry-run strategy
Signed-off-by: Anand Francis Joseph <[email protected]>
1 parent fa36dc3 commit 2a50326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/utils/kube/resource_ops.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func (k *kubectlResourceOperations) ApplyResource(ctx context.Context, obj *unst
230230
span.SetBaggageItem("name", obj.GetName())
231231
defer span.Finish()
232232
k.log.WithValues(
233-
"dry-run", dryRunStrategy,
233+
"dry-run", [...]string{"none", "client", "server"}[dryRunStrategy],
234234
"manager", manager,
235235
"serverSideApply", serverSideApply,
236236
"serverSideDiff", serverSideDiff).Info(fmt.Sprintf("Applying resource %s/%s in cluster: %s, namespace: %s", obj.GetKind(), obj.GetName(), k.config.Host, obj.GetNamespace()))

0 commit comments

Comments
 (0)