Skip to content

Commit d93b545

Browse files
committed
clusteroperator: Ignore EvaluationConditionsDetected condition
As per godoc of cluster operator type ``` EvaluationConditionsDetected is used to indicate the result of the detection logic that was added to a component to evaluate the introduction of an invasive change that could potentially result in highly visible alerts, breakages or upgrade failures. You can concatenate multiple Reason using the "::" delimiter if you need to evaluate the introduction of multiple changes. ``` which is not required in our usecase to check cluster operator availability so ignoring that state. This will also fix the debug logs of start command which have following message ``` DEBU Unexpected operator status for authentication: EvaluationConditionsDetected DEBU Unexpected operator status for config-operator: EvaluationConditionsDetected DEBU Unexpected operator status for console: EvaluationConditionsDetected DEBU Unexpected operator status for etcd: EvaluationConditionsDetected DEBU Unexpected operator status for ingress: EvaluationConditionsDetected DEBU Unexpected operator status for kube-apiserver: EvaluationConditionsDetected DEBU Unexpected operator status for kube-controller-manager: EvaluationConditionsDetected DEBU Unexpected operator status for kube-scheduler: EvaluationConditionsDetected DEBU Unexpected operator status for machine-config: EvaluationConditionsDetected DEBU Unexpected operator status for openshift-apiserver: EvaluationConditionsDetected DEBU Unexpected operator status for openshift-controller-manager: EvaluationConditionsDetected ```
1 parent 54882f6 commit d93b545

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/crc/cluster/clusteroperator.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ func getStatus(ctx context.Context, lister operatorLister, selector []string) (*
128128
}
129129
case openshiftapi.OperatorUpgradeable:
130130
continue
131+
case openshiftapi.EvaluationConditionsDetected:
132+
continue
131133
case "Disabled": // non official status, used by insights and cluster baremetal operators
132134
if con.Status == openshiftapi.ConditionTrue {
133135
logging.Debug(c.ObjectMeta.Name, " operator is disabled, Reason: ", con.Reason)

0 commit comments

Comments
 (0)