Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
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 |
208520,2 | K8S-3421: Make IsNativeAuditCleanupEnabled return false if pruneAge=0 | master | couchbase-operator | Status: MERGED | +2 | +1 |