Skip to content

Commit

Permalink
Merge pull request #80 from awgreene/update-operatorcondition
Browse files Browse the repository at this point in the history
Update OperatorConditionSpec
  • Loading branch information
awgreene authored Nov 30, 2020
2 parents f55ec86 + e312adc commit 615f3c0
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 9 deletions.
5 changes: 5 additions & 0 deletions crds/defs.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,8 @@ func Operator() *apiextensionsv1.CustomResourceDefinition {
func Subscription() *apiextensionsv1.CustomResourceDefinition {
return getCRD("operators.coreos.com_subscriptions.yaml").DeepCopy()
}

// OperatorCondition returns a copy of the CustomResourceDefinition for the latest version of the OperatorCondition API.
func OperatorCondition() *apiextensionsv1.CustomResourceDefinition {
return getCRD("operators.coreos.com_operatorconditions.yaml").DeepCopy()
}
8 changes: 8 additions & 0 deletions crds/operators.coreos.com_operatorconditions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ spec:
reported by the operator.
type: object
properties:
deployments:
type: array
items:
type: string
overrides:
type: array
items:
Expand Down Expand Up @@ -110,6 +114,10 @@ spec:
type: string
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
serviceAccounts:
type: array
items:
type: string
status:
description: OperatorConditionStatus allows an operator to convey information
its state to OLM. The status may trail the actual state of a system.
Expand Down
Loading

0 comments on commit 615f3c0

Please sign in to comment.