From 9df4c5b15b0e95d078102ce892597bbc5b383eca Mon Sep 17 00:00:00 2001 From: Vu Dinh Date: Tue, 1 Dec 2020 14:36:54 -0500 Subject: [PATCH] Add OperatorUpgradeable condition type to OperatorCondition api This condition type is used to signify that the operator is upgradeable. Signed-off-by: Vu Dinh --- pkg/operators/v1/operatorcondition_types.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/operators/v1/operatorcondition_types.go b/pkg/operators/v1/operatorcondition_types.go index 212e06589..dbfccc5ce 100644 --- a/pkg/operators/v1/operatorcondition_types.go +++ b/pkg/operators/v1/operatorcondition_types.go @@ -4,6 +4,11 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) +const ( + // OperatorUpgradeable indicates that the operator is upgradeable + OperatorUpgradeable ConditionType = "OperatorUpgradeable" +) + // OperatorConditionSpec allows a cluster admin to convey information about the state of an operator to OLM, potentially overriding state reported by the operator. type OperatorConditionSpec struct { ServiceAccounts []string `json:"serviceAccounts,omitempty"`