You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/addon/configpolicy/manifests/managedclusterchart/templates/policy.open-cluster-management.io_configurationpolicies_crd.yaml
+37-6Lines changed: 37 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -162,14 +162,29 @@ spec:
162
162
x-kubernetes-preserve-unknown-fields: true
163
163
recordDiff:
164
164
description: |-
165
-
RecordDiff specifies whether (and where) to log the diff between the object on the
166
-
cluster and the objectDefinition in the policy. Defaults to "None" when the object kind is
167
-
ConfigMap, OAuthAccessToken, OAuthAuthorizeTokens, Route, or Secret. Defaults to "InStatus" otherwise.
165
+
RecordDiff specifies whether and where to log the difference between the object on the cluster
166
+
and the `objectDefinition` parameter in the policy. The supported options are `InStatus` to record the
167
+
difference in the policy status field, `Log` to log the difference in the
168
+
`config-policy-controller` pod, and `None` to not log the difference. The default value is `None` for
169
+
object kinds that include sensitive data such as `ConfigMap`, `OAuthAccessToken`,
170
+
`OAuthAuthorizeTokens`, `Route`, and `Secret`, or when a templated `objectDefinition` references sensitive
171
+
data. For all other kinds, the default value is `InStatus`.
168
172
enum:
169
173
- Log
170
174
- InStatus
171
175
- None
172
176
type: string
177
+
recreateOption:
178
+
description: |-
179
+
RecreateOption describes whether to delete and recreate an object when an update is required. `IfRequired`
180
+
will recreate the object when updating an immutable field. `Always` will always recreate the object if a mismatch
181
+
is detected. `RecreateOption` has no effect when the `remediationAction` is `inform`. `IfRequired` has no effect
182
+
on clusters without dry run update support. The default value is `None`.
183
+
enum:
184
+
- None
185
+
- IfRequired
186
+
- Always
187
+
type: string
173
188
required:
174
189
- complianceType
175
190
- objectDefinition
@@ -491,14 +506,30 @@ spec:
491
506
x-kubernetes-preserve-unknown-fields: true
492
507
recordDiff:
493
508
description: |-
494
-
RecordDiff specifies whether (and where) to log the diff between the object on the
495
-
cluster and the objectDefinition in the policy. Defaults to "None" when the object kind is
496
-
ConfigMap, OAuthAccessToken, OAuthAuthorizeTokens, Route, or Secret. Defaults to "InStatus" otherwise.
509
+
RecordDiff specifies whether and where to log the difference between the object on the cluster
510
+
and the `objectDefinition` parameter in the policy. The supported options are `InStatus` to record the
511
+
difference in the policy status field, `Log` to log the difference in the
512
+
`config-policy-controller` pod, and `None` to not log the difference. The default value is `None` for
513
+
object kinds that include sensitive data such as `ConfigMap`, `OAuthAccessToken`,
514
+
`OAuthAuthorizeTokens`, `Route`, and `Secret`, or when a templated `objectDefinition` references sensitive
515
+
data. For all other kinds, the default value is `InStatus`.
497
516
enum:
498
517
- Log
499
518
- InStatus
500
519
- None
501
520
type: string
521
+
recreateOption:
522
+
default: None
523
+
description: |-
524
+
RecreateOption describes whether to delete and recreate an object when an update is required. `IfRequired`
525
+
will recreate the object when updating an immutable field. `Always` will always recreate the object if a mismatch
526
+
is detected. `RecreateOption` has no effect when the `remediationAction` is `inform`. `IfRequired` has no effect
527
+
on clusters without dry run update support. The default value is `None`.
Copy file name to clipboardExpand all lines: pkg/addon/configpolicy/manifests/managedclusterchart/templates/policy.open-cluster-management.io_operatorpolicies_crd.yaml
0 commit comments