Skip to content

Commit

Permalink
fix API validation for OperatorGroup spec
Browse files Browse the repository at this point in the history
  • Loading branch information
alecmerdler committed Feb 19, 2019
1 parent cce4af2 commit 831a578
Showing 1 changed file with 35 additions and 29 deletions.
64 changes: 35 additions & 29 deletions deploy/chart/templates/0000_50_olm_09-operatorgroup.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,35 +30,41 @@ spec:
selector:
type: object
description: Optional label selector to find resources associated with or managed by the operator
properties:
matchLabels:
type: object
description: Label key:value pairs to match directly
matchExpressions:
type: array
description: A set of expressions to match against the resource.
items:
allOf:
- type: object
required:
- key
- operator
- values
properties:
key:
type: string
description: the key to match
operator:
type: string
description: the operator for the expression
enum:
- In
- NotIn
- Exists
- DoesNotExist
values:
type: array
description: set of values for the expression
anyOf:
- properties:
matchLabels:
type: object
description: Label key:value pairs to match directly
required:
- matchLabels
- properties:
matchExpressions:
type: array
description: A set of expressions to match against the resource.
items:
allOf:
- type: object
required:
- key
- operator
- values
properties:
key:
type: string
description: the key to match
operator:
type: string
description: the operator for the expression
enum:
- In
- NotIn
- Exists
- DoesNotExist
values:
type: array
description: set of values for the expression
required:
- matchExpressions
targetNamespaces:
type: array
description: Optional list of target namespaces. If set, OLM will ignore selector.
Expand Down

0 comments on commit 831a578

Please sign in to comment.