From 9b95e671c8e8b058e40f1fd2dff742b2a18b663c Mon Sep 17 00:00:00 2001 From: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:42:40 -0500 Subject: [PATCH] Add `recordDiff` to ConfigPolicy ref: https://issues.redhat.com/browse/ACM-9072 Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> (cherry picked from commit 107543d0dbd183a98420417be4edec00ddfa8e3e) --- ...ster-management.io_configurationpolicies_crd.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkg/addon/configpolicy/manifests/managedclusterchart/templates/policy.open-cluster-management.io_configurationpolicies_crd.yaml b/pkg/addon/configpolicy/manifests/managedclusterchart/templates/policy.open-cluster-management.io_configurationpolicies_crd.yaml index 12203125..93d66713 100644 --- a/pkg/addon/configpolicy/manifests/managedclusterchart/templates/policy.open-cluster-management.io_configurationpolicies_crd.yaml +++ b/pkg/addon/configpolicy/manifests/managedclusterchart/templates/policy.open-cluster-management.io_configurationpolicies_crd.yaml @@ -128,6 +128,12 @@ spec: description: ObjectDefinition defines required fields for the object type: object x-kubernetes-preserve-unknown-fields: true + recordDiff: + description: RecordDiff specifies whether (and where) to log the diff between the object on the cluster and the objectDefinition in the policy. Defaults to "None". + enum: + - Log + - None + type: string required: - complianceType - objectDefinition @@ -406,6 +412,12 @@ spec: description: ObjectDefinition defines required fields for the object type: object x-kubernetes-preserve-unknown-fields: true + recordDiff: + description: RecordDiff specifies whether (and where) to log the diff between the object on the cluster and the objectDefinition in the policy. Defaults to "None". + enum: + - Log + - None + type: string required: - complianceType - objectDefinition