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