Skip to content

Commit 9df4c5b

Browse files
committed
Add OperatorUpgradeable condition type to OperatorCondition api
This condition type is used to signify that the operator is upgradeable. Signed-off-by: Vu Dinh <[email protected]>
1 parent 615f3c0 commit 9df4c5b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/operators/v1/operatorcondition_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import (
44
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
55
)
66

7+
const (
8+
// OperatorUpgradeable indicates that the operator is upgradeable
9+
OperatorUpgradeable ConditionType = "OperatorUpgradeable"
10+
)
11+
712
// OperatorConditionSpec allows a cluster admin to convey information about the state of an operator to OLM, potentially overriding state reported by the operator.
813
type OperatorConditionSpec struct {
914
ServiceAccounts []string `json:"serviceAccounts,omitempty"`

0 commit comments

Comments
 (0)