Skip to content

Commit fc18f48

Browse files
dhaiducekopenshift-merge-bot[bot]
authored andcommitted
Sync Config/Operator CRDs
Signed-off-by: Dale Haiducek <[email protected]>
1 parent 70230fa commit fc18f48

File tree

2 files changed

+58
-6
lines changed

2 files changed

+58
-6
lines changed

pkg/addon/configpolicy/manifests/managedclusterchart/templates/policy.open-cluster-management.io_configurationpolicies_crd.yaml

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,29 @@ spec:
162162
x-kubernetes-preserve-unknown-fields: true
163163
recordDiff:
164164
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`.
168172
enum:
169173
- Log
170174
- InStatus
171175
- None
172176
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
173188
required:
174189
- complianceType
175190
- objectDefinition
@@ -491,14 +506,30 @@ spec:
491506
x-kubernetes-preserve-unknown-fields: true
492507
recordDiff:
493508
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`.
497516
enum:
498517
- Log
499518
- InStatus
500519
- None
501520
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`.
528+
enum:
529+
- None
530+
- IfRequired
531+
- Always
532+
type: string
502533
required:
503534
- complianceType
504535
- objectDefinition

pkg/addon/configpolicy/manifests/managedclusterchart/templates/policy.open-cluster-management.io_operatorpolicies_crd.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@ spec:
125125
https://olm.operatorframework.io/docs/concepts/crds/subscription/
126126
type: object
127127
x-kubernetes-preserve-unknown-fields: true
128+
upgradeApproval:
129+
description: |-
130+
UpgradeApproval determines whether 'upgrade' InstallPlans for the operator will be approved
131+
by the controller when the policy is enforced and in 'musthave' mode. The initial InstallPlan
132+
approval is not affected by this setting. This setting has no effect when the policy is in
133+
'mustnothave' mode. Allowed values are "None" or "Automatic".
134+
enum:
135+
- None
136+
- Automatic
137+
type: string
128138
versions:
129139
description: |-
130140
Versions is a list of nonempty strings that specifies which installed versions are compliant when
@@ -136,6 +146,7 @@ spec:
136146
required:
137147
- complianceType
138148
- subscription
149+
- upgradeApproval
139150
type: object
140151
status:
141152
description: OperatorPolicyStatus defines the observed state of OperatorPolicy
@@ -207,6 +218,13 @@ spec:
207218
x-kubernetes-list-map-keys:
208219
- type
209220
x-kubernetes-list-type: map
221+
overlappingPolicies:
222+
description: |-
223+
The list of overlapping OperatorPolicies (as name.namespace) which all manage the same
224+
subscription, including this policy. When no overlapping is detected, this list will be empty.
225+
items:
226+
type: string
227+
type: array
210228
relatedObjects:
211229
description: List of resources processed by the policy
212230
items:
@@ -253,6 +271,9 @@ spec:
253271
type: string
254272
type: object
255273
type: array
274+
resolvedSubscriptionLabel:
275+
description: The resolved name.namespace of the subscription
276+
type: string
256277
type: object
257278
type: object
258279
served: true

0 commit comments

Comments
 (0)