You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make machineConfigLabels-related misconfiguration more visible
NTO Tuned CRs support machine config labels (mcLabels) based matching.
This involves finding a MachineConfigPool with machineConfigSelector
matching mcLabels and setting a TuneD profile on all nodes that are
assigned the found MachineConfigPool. We do not support configurations,
where more than 1 MachineConfigPool matches the mcLabels. While this
configuration is not supported, users often unwittingly configure
their clusters in this way. In this case, NTO issues an error message
in the operator logs.
This is often not sufficient, so we make this misconfiguration more
visible by making ClusterOperator/node-tuning object Degraded.
klog.Infof("%v/%v Profiles use machineConfigLabels that match across multiple MCPs", numMCLabelsAcrossMCP, len(profileList))
338
+
degradedCondition.Status=configv1.ConditionTrue
339
+
degradedCondition.Reason="MCLabelsAcrossMCPs"
340
+
degradedCondition.Message=fmt.Sprintf("%v/%v Profiles use machineConfigLabels that match across multiple MCPs", numMCLabelsAcrossMCP, len(profileList))
341
+
}
342
+
321
343
// If the operator is not available for an extensive period of time, set the Degraded operator status.
0 commit comments