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

IsNativeAuditCleanupEnabled shouldn't return true if pruneAge set to 0

    XMLWordPrintable

Details

    • 8 - Tears of the Nameless
    • 1

    Description

      Causes TestLoggingAndAuditingDefaults to currently fail due to failed DAC validation:

       util.go:1460: admission webhook "couchbase-operator-admission.default.svc" denied the request: validation failure list:
              'spec.logging.audit.garbageCollection.sidecar' and 'spec.logging.audit.rotation.pruneAge' are mutually exclusive 

      Since 0 is the default value, valid specifications like the following where rotation is non-empty but pruneAge isn't defined also fail DAC validation (with the same message):

          audit:
            enabled: true
            rotation:
              size: 1Mi
            garbageCollection:
              sidecar:
                enabled: true
      

      If pruneAge is set to 0, then per the docs, native audit cleanup should be considered disabled.

      Attachments

        For Gerrit Dashboard: K8S-3421
        # Subject Branch Project Status CR V

        Activity

          People

            jack.bakes Jack Bakes
            jack.bakes Jack Bakes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty