pkg/operator/status: Use 'DegradedPool' reason for Upgradeable=False
(add Upgradeable = False to syncUpgradeableStatus,
2020-11-20, added this check, but Reason is supposed to be a
machine-readable slug, while the human-oriented string goes in Message
[1].
@@ -266,7 +266,8 @@ func (optr *Operator) syncUpgradeableStatus() error {
degraded := isPoolStatusConditionTrue(pool, mcfgv1.MachineConfigPoolDegraded)
if degraded {
coStatus.Status = configv1.ConditionFalse
- coStatus.Reason = "One or more machine config pool is degraded, please see `oc get mcp` for further details and resolve before upgrading"
+ coStatus.Reason = "DegradedPool"
+ coStatus.Message = "One or more machine config pool is degraded, please see `oc get mcp` for further details and resolve before upgrading"
}
}
