We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4a331 commit f20f114Copy full SHA for f20f114
1 file changed
pkg/cvo/metrics.go
@@ -473,9 +473,8 @@ func (m *operatorMetrics) collectConditionalUpdateRisks(ch chan<- prometheus.Met
473
g := m.clusterVersionRiskConditions.WithLabelValues(condition.Type, risk.Name)
474
if condition.Status == metav1.ConditionTrue {
475
g.Set(1)
476
- } else {
477
- g.Set(0)
478
}
+ // We do not need to do g.Set(0) as it is done when g is initialized
479
ch <- g
480
481
0 commit comments