Skip to content

Commit f59d858

Browse files
willkutleropenshift-merge-robot
authored andcommitted
Update config policy CRD with new object-templates-raw field
Signed-off-by: Will Kutler <[email protected]> Updates configurationpolicy CRD with new field from https://github.com/open-cluster-management-io/config-policy-controller/pull/95/files
1 parent 3067ad6 commit f59d858

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ spec:
9696
type: object
9797
type: object
9898
object-templates:
99+
description: '''object-templates'' and ''object-templates-raw'' are arrays of objects for the configuration policy to check, create, modify, or delete on the cluster. ''object-templates'' is an array of objects, while ''object-templates-raw'' is a string containing an array of objects in YAML format. Only one of the two object-templates variables can be set in a given configurationPolicy.'
99100
items:
100101
description: ObjectTemplate describes how an object should look
101102
properties:
@@ -130,6 +131,9 @@ spec:
130131
- complianceType
131132
type: object
132133
type: array
134+
object-templates-raw:
135+
description: '''object-templates'' and ''object-templates-raw'' are arrays of objects for the configuration policy to check, create, modify, or delete on the cluster. ''object-templates'' is an array of objects, while ''object-templates-raw'' is a string containing an array of objects in YAML format. Only one of the two object-templates variables can be set in a given configurationPolicy.'
136+
type: string
133137
pruneObjectBehavior:
134138
description: PruneObjectBehavior is used to remove objects that are managed by the policy upon policy deletion.
135139
enum:
@@ -305,6 +309,11 @@ spec:
305309
type: object
306310
spec:
307311
description: ConfigurationPolicySpec defines the desired state of ConfigurationPolicy
312+
oneOf:
313+
- required:
314+
- object-templates
315+
- required:
316+
- object-templates-raw
308317
properties:
309318
evaluationInterval:
310319
description: Configures the minimum elapsed time before a ConfigurationPolicy is reevaluated
@@ -361,6 +370,7 @@ spec:
361370
type: object
362371
type: object
363372
object-templates:
373+
description: '''object-templates'' and ''object-templates-raw'' are arrays of objects for the configuration policy to check, create, modify, or delete on the cluster. ''object-templates'' is an array of objects, while ''object-templates-raw'' is a string containing an array of objects in YAML format. Only one of the two object-templates variables can be set in a given configurationPolicy.'
364374
items:
365375
description: ObjectTemplate describes how an object should look
366376
properties:
@@ -395,6 +405,9 @@ spec:
395405
- complianceType
396406
type: object
397407
type: array
408+
object-templates-raw:
409+
description: '''object-templates'' and ''object-templates-raw'' are arrays of objects for the configuration policy to check, create, modify, or delete on the cluster. ''object-templates'' is an array of objects, while ''object-templates-raw'' is a string containing an array of objects in YAML format. Only one of the two object-templates variables can be set in a given configurationPolicy.'
410+
type: string
398411
pruneObjectBehavior:
399412
default: None
400413
description: PruneObjectBehavior is used to remove objects that are managed by the policy upon policy deletion.

0 commit comments

Comments
 (0)