Skip to content

Commit 528958c

Browse files
dhaiducekopenshift-ci[bot]
authored andcommitted
Update ConfigurationPolicy CRD
Signed-off-by: Dale Haiducek <[email protected]>
1 parent 07444da commit 528958c

File tree

1 file changed

+132
-10
lines changed

1 file changed

+132
-10
lines changed

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

Lines changed: 132 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,64 @@ spec:
5757
pattern: ^(?:(?:(?:[0-9]+(?:.[0-9])?)(?:h|m|s|(?:ms)|(?:us)|(?:ns)))|never)+$
5858
type: string
5959
type: object
60-
labelSelector:
61-
additionalProperties:
62-
type: string
63-
type: object
6460
namespaceSelector:
65-
description: Target defines the list of namespaces to include/exclude
61+
description: '''namespaceSelector'' defines the list of namespaces to
62+
include/exclude for objects defined in spec.objectTemplates. All selector
63+
rules are ANDed. If ''include'' is not provided but ''matchLabels''
64+
and/or ''matchExpressions'' are, ''include'' will behave as if [''*'']
65+
were given. If ''matchExpressions'' and ''matchLabels'' are both not
66+
provided, ''include'' must be provided to retrieve namespaces.'
6667
properties:
6768
exclude:
69+
description: '''exclude'' is an array of filepath expressions to
70+
exclude objects by name.'
6871
items:
6972
minLength: 1
7073
type: string
7174
type: array
7275
include:
76+
description: '''include'' is an array of filepath expressions to
77+
include objects by name.'
7378
items:
7479
minLength: 1
7580
type: string
7681
type: array
82+
matchExpressions:
83+
description: '''matchExpressions'' is an array of label selector
84+
requirements matching objects by label.'
85+
items:
86+
description: A label selector requirement is a selector that contains
87+
values, a key, and an operator that relates the key and values.
88+
properties:
89+
key:
90+
description: key is the label key that the selector applies
91+
to.
92+
type: string
93+
operator:
94+
description: operator represents a key's relationship to a
95+
set of values. Valid operators are In, NotIn, Exists and
96+
DoesNotExist.
97+
type: string
98+
values:
99+
description: values is an array of string values. If the operator
100+
is In or NotIn, the values array must be non-empty. If the
101+
operator is Exists or DoesNotExist, the values array must
102+
be empty. This array is replaced during a strategic merge
103+
patch.
104+
items:
105+
type: string
106+
type: array
107+
required:
108+
- key
109+
- operator
110+
type: object
111+
type: array
112+
matchLabels:
113+
additionalProperties:
114+
type: string
115+
description: '''matchLabels'' is a map of {key,value} pairs matching
116+
objects by label.'
117+
type: object
77118
type: object
78119
object-templates:
79120
items:
@@ -113,6 +154,13 @@ spec:
113154
- complianceType
114155
type: object
115156
type: array
157+
pruneObjectBehavior:
158+
description: 'PruneObjectBehavior : DeleteAll, DeleteIfCreated, or None'
159+
enum:
160+
- DeleteAll
161+
- DeleteIfCreated
162+
- None
163+
type: string
116164
remediationAction:
117165
description: 'RemediationAction : enforce or inform'
118166
enum:
@@ -222,6 +270,17 @@ spec:
222270
type: string
223271
type: object
224272
type: object
273+
properties:
274+
properties:
275+
createdByPolicy:
276+
description: Whether the object was created by the parent
277+
policy
278+
type: boolean
279+
uid:
280+
description: Store object UID to help track object ownership
281+
for deletion
282+
type: string
283+
type: object
225284
reason:
226285
type: string
227286
type: object
@@ -296,23 +355,66 @@ spec:
296355
pattern: ^(?:(?:(?:[0-9]+(?:.[0-9])?)(?:h|m|s|(?:ms)|(?:us)|(?:ns)))|never)+$
297356
type: string
298357
type: object
299-
labelSelector:
300-
additionalProperties:
301-
type: string
302-
type: object
303358
namespaceSelector:
304-
description: Target defines the list of namespaces to include/exclude
359+
description: '''namespaceSelector'' defines the list of namespaces
360+
to include/exclude for objects defined in spec.objectTemplates.
361+
All selector rules are ANDed. If ''include'' is not provided but
362+
''matchLabels'' and/or ''matchExpressions'' are, ''include'' will
363+
behave as if [''*''] were given. If ''matchExpressions'' and ''matchLabels''
364+
are both not provided, ''include'' must be provided to retrieve
365+
namespaces.'
305366
properties:
306367
exclude:
368+
description: '''exclude'' is an array of filepath expressions
369+
to exclude objects by name.'
307370
items:
308371
minLength: 1
309372
type: string
310373
type: array
311374
include:
375+
description: '''include'' is an array of filepath expressions
376+
to include objects by name.'
312377
items:
313378
minLength: 1
314379
type: string
315380
type: array
381+
matchExpressions:
382+
description: '''matchExpressions'' is an array of label selector
383+
requirements matching objects by label.'
384+
items:
385+
description: A label selector requirement is a selector that
386+
contains values, a key, and an operator that relates the key
387+
and values.
388+
properties:
389+
key:
390+
description: key is the label key that the selector applies
391+
to.
392+
type: string
393+
operator:
394+
description: operator represents a key's relationship to
395+
a set of values. Valid operators are In, NotIn, Exists
396+
and DoesNotExist.
397+
type: string
398+
values:
399+
description: values is an array of string values. If the
400+
operator is In or NotIn, the values array must be non-empty.
401+
If the operator is Exists or DoesNotExist, the values
402+
array must be empty. This array is replaced during a strategic
403+
merge patch.
404+
items:
405+
type: string
406+
type: array
407+
required:
408+
- key
409+
- operator
410+
type: object
411+
type: array
412+
matchLabels:
413+
additionalProperties:
414+
type: string
415+
description: '''matchLabels'' is a map of {key,value} pairs matching
416+
objects by label.'
417+
type: object
316418
type: object
317419
object-templates:
318420
items:
@@ -352,6 +454,15 @@ spec:
352454
- complianceType
353455
type: object
354456
type: array
457+
pruneObjectBehavior:
458+
default: None
459+
description: 'PruneObjectBehavior : DeleteAll, DeleteIfCreated, or
460+
None'
461+
enum:
462+
- DeleteAll
463+
- DeleteIfCreated
464+
- None
465+
type: string
355466
remediationAction:
356467
description: 'RemediationAction : enforce or inform'
357468
enum:
@@ -463,6 +574,17 @@ spec:
463574
type: string
464575
type: object
465576
type: object
577+
properties:
578+
properties:
579+
createdByPolicy:
580+
description: Whether the object was created by the parent
581+
policy
582+
type: boolean
583+
uid:
584+
description: Store object UID to help track object ownership
585+
for deletion
586+
type: string
587+
type: object
466588
reason:
467589
type: string
468590
type: object

0 commit comments

Comments
 (0)