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 0e88b15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/reconcile/atomic_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit 0e88b15

Please sign in to comment.