Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-3268

Diffs from "Resource Updated" logs should be human readable

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.6.1
    • None
    • operator
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              usamah.jassat Usamah Jassat
              justin.ashworth Justin Ashworth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty