Skip to content

Commit

Permalink
added installPlanApproval strategy (auto/manual) to metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
konsotirop committed Jun 29, 2020
1 parent a7c2517 commit fca60c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func UpdateSubsSyncCounterStorage(sub *olmv1alpha1.Subscription) {
approvalStrategy != counterValues.approvalStrategy {

// Delete metric will label values of old Subscription first
SubscriptionSyncCount.DeleteLabelValues(sub.GetName(), counterValues.installedCSV, counterValues.channel, counterValues.pkg)
SubscriptionSyncCount.DeleteLabelValues(sub.GetName(), counterValues.installedCSV, counterValues.channel, counterValues.pkg, counterValues.approvalStrategy)

counterValues.installedCSV = sub.Status.InstalledCSV
counterValues.pkg = sub.Spec.Package
Expand Down

0 comments on commit fca60c2

Please sign in to comment.