Skip to content

Commit d5212c0

Browse files
committed
Move UpgradeableUpgradeInProgress into the internal pkg
1 parent cea8161 commit d5212c0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pkg/cvo/upgradeable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ type upgradeInProgressUpgradeable struct {
269269

270270
func (check *upgradeInProgressUpgradeable) Check() *configv1.ClusterOperatorStatusCondition {
271271
cond := &configv1.ClusterOperatorStatusCondition{
272-
Type: "UpgradeableUpgradeInProgress",
272+
Type: internal.UpgradeableUpgradeInProgress,
273273
Status: configv1.ConditionTrue,
274274
}
275275

pkg/internal/constants.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,7 @@ const (
6767
// UpgradeableClusterVersionOverrides is False if there are overrides in the Cluster Version, and thus update to the next minor
6868
// version is blocked.
6969
UpgradeableClusterVersionOverrides configv1.ClusterStatusConditionType = "UpgradeableClusterVersionOverrides"
70+
71+
// UpgradeableUpgradeInProgress is True if an update is in progress
72+
UpgradeableUpgradeInProgress configv1.ClusterStatusConditionType = "UpgradeableUpgradeInProgress"
7073
)

0 commit comments

Comments
 (0)