Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
Christmas and Beyond
-
3
Description
Currently, log messages for resource updated messages have a formatted diff that looks great when parsed with a parser, but looks awful when attempting to be read via logs.
I'm suggesting that we improve this by simplifying the message, while still maintaining some level machine readability.
Field changes should be recorded as
Field:OldValue->NewValue;
Field additions should recorded as
+Field:Value;
Field Removals should be recorded as
-Field:Value;
When combined, the log message should appear as such:
spec.paused:True->False;+spec.antiAffinity:True;-spec.cluster.analyticsServiceMemoryQuota:1Gi
With a semi-colon separated list of the changes.
Attachments
Issue Links
- relates to
-
K8S-3354 Cloud Native 2.6.1 - Release Notes
- Closed
For Gerrit Dashboard: K8S-3268 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
203059,2 | K8S-3268: Add human readable resource diff | master | couchbase-operator | Status: MERGED | +2 | +1 |