Skip to content

Commit

Permalink
Re-enable logging json patch on StatusDrifted
Browse files Browse the repository at this point in the history
Signed-off-by: Soule BA <bah.soule@gmail.com>
  • Loading branch information
souleb committed Jun 18, 2024
1 parent ad7e418 commit a3c4b4d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/reconcile/atomic_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,13 @@ 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",
"resource", diff.ResourceName(change.DesiredObject))
"resource", diff.ResourceName(change.DesiredObject),
"patch", patch)
}
}

Expand Down

0 comments on commit a3c4b4d

Please sign in to comment.