Skip to content

Commit 638425c

Browse files
Merge pull request #716 from alecmerdler/ALM-913
Fix API Validation for `OperatorGroup` Spec
2 parents 04d2513 + 831a578 commit 638425c

File tree

1 file changed

+35
-29
lines changed

1 file changed

+35
-29
lines changed

deploy/chart/templates/0000_50_olm_09-operatorgroup.crd.yaml

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,41 @@ spec:
3030
selector:
3131
type: object
3232
description: Optional label selector to find resources associated with or managed by the operator
33-
properties:
34-
matchLabels:
35-
type: object
36-
description: Label key:value pairs to match directly
37-
matchExpressions:
38-
type: array
39-
description: A set of expressions to match against the resource.
40-
items:
41-
allOf:
42-
- type: object
43-
required:
44-
- key
45-
- operator
46-
- values
47-
properties:
48-
key:
49-
type: string
50-
description: the key to match
51-
operator:
52-
type: string
53-
description: the operator for the expression
54-
enum:
55-
- In
56-
- NotIn
57-
- Exists
58-
- DoesNotExist
59-
values:
60-
type: array
61-
description: set of values for the expression
33+
anyOf:
34+
- properties:
35+
matchLabels:
36+
type: object
37+
description: Label key:value pairs to match directly
38+
required:
39+
- matchLabels
40+
- properties:
41+
matchExpressions:
42+
type: array
43+
description: A set of expressions to match against the resource.
44+
items:
45+
allOf:
46+
- type: object
47+
required:
48+
- key
49+
- operator
50+
- values
51+
properties:
52+
key:
53+
type: string
54+
description: the key to match
55+
operator:
56+
type: string
57+
description: the operator for the expression
58+
enum:
59+
- In
60+
- NotIn
61+
- Exists
62+
- DoesNotExist
63+
values:
64+
type: array
65+
description: set of values for the expression
66+
required:
67+
- matchExpressions
6268
targetNamespaces:
6369
type: array
6470
description: Optional list of target namespaces. If set, OLM will ignore selector.

0 commit comments

Comments
 (0)