diff --git a/pkg/operators/v1/operatorcondition_types.go b/pkg/operators/v1/operatorcondition_types.go index dbfccc5ce..6c06b18a2 100644 --- a/pkg/operators/v1/operatorcondition_types.go +++ b/pkg/operators/v1/operatorcondition_types.go @@ -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. diff --git a/pkg/operators/v1alpha1/clusterserviceversion_types.go b/pkg/operators/v1alpha1/clusterserviceversion_types.go index 0c251cd49..3bcb83586 100644 --- a/pkg/operators/v1alpha1/clusterserviceversion_types.go +++ b/pkg/operators/v1alpha1/clusterserviceversion_types.go @@ -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.