Skip to content

Commit

Permalink
Sync CRDs
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
  • Loading branch information
JustinKuli authored and openshift-merge-bot[bot] committed Aug 5, 2024
1 parent 8aa8a15 commit a12131d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ spec:
description: >-
ConfigurationPolicySpec defines the desired configuration of objects on the cluster, along with how the controller should handle when the cluster doesn't match the configuration policy.
properties:
customMessage:
description: >-
CustomMessage configures the compliance messages emitted by the configuration policy, to use one of the specified Go templates based on the current compliance. The data passed to the templates include a `.DefaultMessage` string variable which matches the message that would be emitted if no custom template was defined, and a `.Policy` object variable which contains the full current state of the policy. If the policy is using Kubernetes API watches (default but can be configured with EvaluationInterval), and the object exists, then the full state of each related object will be available at `.Policy.status.relatedObjects[*].object`. Otherwise, only the identifier information will be available there.
properties:
compliant:
description: Compliant is the template used for the compliance message when the policy is compliant.
type: string
noncompliant:
description: >-
NonCompliant is the template used for the compliance message when the policy is not compliant, including when the status is unknown.
type: string
type: object
evaluationInterval:
description: >-
EvaluationInterval configures the minimum elapsed time before a configuration policy is reevaluated. The default value is `watch` to leverage Kubernetes API watches instead of polling the Kubernetes API server. If the policy spec is changed or if the list of namespaces selected by the policy changes, the policy might be evaluated regardless of the settings here.
Expand Down Expand Up @@ -373,6 +385,18 @@ spec:
- required:
- object-templates-raw
properties:
customMessage:
description: >-
CustomMessage configures the compliance messages emitted by the configuration policy, to use one of the specified Go templates based on the current compliance. The data passed to the templates include a `.DefaultMessage` string variable which matches the message that would be emitted if no custom template was defined, and a `.Policy` object variable which contains the full current state of the policy. If the policy is using Kubernetes API watches (default but can be configured with EvaluationInterval), and the object exists, then the full state of each related object will be available at `.Policy.status.relatedObjects[*].object`. Otherwise, only the identifier information will be available there.
properties:
compliant:
description: Compliant is the template used for the compliance message when the policy is compliant.
type: string
noncompliant:
description: >-
NonCompliant is the template used for the compliance message when the policy is not compliant, including when the status is unknown.
type: string
type: object
evaluationInterval:
description: >-
EvaluationInterval configures the minimum elapsed time before a configuration policy is reevaluated. The default value is `watch` to leverage Kubernetes API watches instead of polling the Kubernetes API server. If the policy spec is changed or if the list of namespaces selected by the policy changes, the policy might be evaluated regardless of the settings here.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
type: object
complianceType:
description: >-
ComplianceType describes how objects on the cluster should be compared with the object definition of the configuration policy. The supported options are `MustHave`, `MustOnlyHave`, or `MustNotHave`.
ComplianceType specifies the desired state of the operator on the cluster. If set to `musthave`, the policy is compliant when the operator is found. If set to `mustnothave`, the policy is compliant when the operator is not found.
enum:
- musthave
- mustnothave
Expand Down Expand Up @@ -249,6 +249,10 @@ spec:
x-kubernetes-list-map-keys:
- type
x-kubernetes-list-type: map
observedGeneration:
description: ObservedGeneration is the latest generation observed by the controller.
format: int64
type: integer
overlappingPolicies:
description: >-
The list of overlapping OperatorPolicies (as name.namespace) which all manage the same subscription, including this policy. When no overlapping is detected, this list will be empty.
Expand Down

0 comments on commit a12131d

Please sign in to comment.