Skip to content

Commit f87500a

Browse files
committed
Do not set the default value
1 parent 2b5364a commit f87500a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/cvo/metrics.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,8 @@ func (m *operatorMetrics) collectConditionalUpdateRisks(ch chan<- prometheus.Met
525525
g := m.clusterVersionRiskConditions.WithLabelValues(condition.Type, risk.Name)
526526
if condition.Status == metav1.ConditionTrue {
527527
g.Set(1)
528-
} else {
529-
g.Set(0)
530528
}
529+
// We do not need to do g.Set(0) as it is done when g is initialized
531530
ch <- g
532531
}
533532
}

0 commit comments

Comments
 (0)