We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b83e05f commit f2d0591Copy full SHA for f2d0591
1 file changed
pkg/cvo/metrics.go
@@ -527,9 +527,8 @@ func (m *operatorMetrics) collectConditionalUpdateRisks(ch chan<- prometheus.Met
527
g := m.clusterVersionRiskConditions.WithLabelValues(condition.Type, risk.Name)
528
if condition.Status == metav1.ConditionTrue {
529
g.Set(1)
530
- } else {
531
- g.Set(0)
532
}
+ // We do not need to do g.Set(0) as it is done when g is initialized
533
ch <- g
534
535
0 commit comments