From 0e88b1520414a2483aed9df42688357cb99475c2 Mon Sep 17 00:00:00 2001 From: Soule BA Date: Tue, 18 Jun 2024 23:49:50 +0200 Subject: [PATCH] Re-enable logging json patch on StatusDrifted Signed-off-by: Soule BA --- internal/reconcile/atomic_release.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/reconcile/atomic_release.go b/internal/reconcile/atomic_release.go index 7ae18c986..e2befe32f 100644 --- a/internal/reconcile/atomic_release.go +++ b/internal/reconcile/atomic_release.go @@ -388,7 +388,12 @@ func (r *AtomicRelease) actionForState(ctx context.Context, req *Request, state log.V(logger.DebugLevel).Info("resource deleted", "resource", diff.ResourceName(change.DesiredObject)) case jsondiff.DiffTypeUpdate: + patch := change.Patch + if change.DesiredObject.GetObjectKind().GroupVersionKind().Kind == "Secret" { + patch = jsondiff.MaskSecretPatchData(change.Patch) + } log.V(logger.DebugLevel).Info("resource modified", + "patch", patch, "resource", diff.ResourceName(change.DesiredObject)) } }