Fix patching on drift detection

Make sure that `/data` for configmaps are not masked

Signed-off-by: Soule BA <bah.soule@gmail.com>
This commit is contained in:
Soule BA 2024-04-09 13:02:10 +02:00
parent d2371a2e46
commit de6588422f
No known key found for this signature in database
GPG Key ID: 4D40965192802994
1 changed files with 1 additions and 2 deletions

View File

@ -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))
}
}