From de6588422fdb770ca7cde16d258e7c6bf8803e7e Mon Sep 17 00:00:00 2001 From: Soule BA Date: Tue, 9 Apr 2024 13:02:10 +0200 Subject: [PATCH] Fix patching on drift detection Make sure that `/data` for configmaps are not masked Signed-off-by: Soule BA --- internal/reconcile/atomic_release.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/reconcile/atomic_release.go b/internal/reconcile/atomic_release.go index edca52009..6f233613b 100644 --- a/internal/reconcile/atomic_release.go +++ b/internal/reconcile/atomic_release.go @@ -382,8 +382,7 @@ func (r *AtomicRelease) actionForState(ctx context.Context, req *Request, state "resource", diff.ResourceName(change.DesiredObject)) case jsondiff.DiffTypeUpdate: log.V(logger.DebugLevel).Info("resource modified", - "resource", diff.ResourceName(change.DesiredObject), - "patch", jsondiff.MaskSecretPatchData(change.Patch)) + "resource", diff.ResourceName(change.DesiredObject)) } }