Skip to content

Commit

Permalink
Merge pull request #85 from dinhxuanvu/condition-func
Browse files Browse the repository at this point in the history
Change OperatorUpgradeable type to string and add utils func
  • Loading branch information
dinhxuanvu authored Dec 3, 2020
2 parents b55a341 + 07141ea commit 4247282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/operators/v1/operatorcondition_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

const (
// OperatorUpgradeable indicates that the operator is upgradeable
OperatorUpgradeable ConditionType = "OperatorUpgradeable"
OperatorUpgradeable string = "OperatorUpgradeable"
)

// OperatorConditionSpec allows a cluster admin to convey information about the state of an operator to OLM, potentially overriding state reported by the operator.
Expand Down
1 change: 1 addition & 0 deletions pkg/operators/v1alpha1/clusterserviceversion_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ const (
CSVReasonCannotModifyStaticOperatorGroupProvidedAPIs ConditionReason = "CannotModifyStaticOperatorGroupProvidedAPIs"
CSVReasonDetectedClusterChange ConditionReason = "DetectedClusterChange"
CSVReasonInvalidWebhookDescription ConditionReason = "InvalidWebhookDescription"
CSVReasonOperatorConditionNotUpgradeable ConditionReason = "OperatorConditionNotUpgradeable"
)

// HasCaResources returns true if the CSV has owned APIServices or Webhooks.
Expand Down

0 comments on commit 4247282

Please sign in to comment.