diff --git a/pkg/reconcilers/base_reconciler.go b/pkg/reconcilers/base_reconciler.go index a537915a1..33223ad7c 100644 --- a/pkg/reconcilers/base_reconciler.go +++ b/pkg/reconcilers/base_reconciler.go @@ -168,7 +168,7 @@ func (b *BaseReconciler) ReconcileResource(ctx context.Context, obj, desired cli return b.DeleteResource(ctx, desired, reconcileOpts.DeleteOptions...) } - var desiredMutated client.Object = desired + var desiredMutated = desired if ptr.Deref(reconcileOpts.DryRunFirst, false) { desiredMutated = desired.DeepCopyObject().(client.Object)