|
96 | 96 | type: object |
97 | 97 | type: object |
98 | 98 | 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.' |
99 | 100 | items: |
100 | 101 | description: ObjectTemplate describes how an object should look |
101 | 102 | properties: |
@@ -130,6 +131,9 @@ spec: |
130 | 131 | - complianceType |
131 | 132 | type: object |
132 | 133 | 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 |
133 | 137 | pruneObjectBehavior: |
134 | 138 | description: PruneObjectBehavior is used to remove objects that are managed by the policy upon policy deletion. |
135 | 139 | enum: |
@@ -305,6 +309,11 @@ spec: |
305 | 309 | type: object |
306 | 310 | spec: |
307 | 311 | description: ConfigurationPolicySpec defines the desired state of ConfigurationPolicy |
| 312 | + oneOf: |
| 313 | + - required: |
| 314 | + - object-templates |
| 315 | + - required: |
| 316 | + - object-templates-raw |
308 | 317 | properties: |
309 | 318 | evaluationInterval: |
310 | 319 | description: Configures the minimum elapsed time before a ConfigurationPolicy is reevaluated |
@@ -361,6 +370,7 @@ spec: |
361 | 370 | type: object |
362 | 371 | type: object |
363 | 372 | 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.' |
364 | 374 | items: |
365 | 375 | description: ObjectTemplate describes how an object should look |
366 | 376 | properties: |
@@ -395,6 +405,9 @@ spec: |
395 | 405 | - complianceType |
396 | 406 | type: object |
397 | 407 | 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 |
398 | 411 | pruneObjectBehavior: |
399 | 412 | default: None |
400 | 413 | description: PruneObjectBehavior is used to remove objects that are managed by the policy upon policy deletion. |
|
0 commit comments