diff --git a/pkg/controller/operators/olm/operator.go b/pkg/controller/operators/olm/operator.go index 9a327af27d..0724320b38 100644 --- a/pkg/controller/operators/olm/operator.go +++ b/pkg/controller/operators/olm/operator.go @@ -1115,11 +1115,12 @@ func (a *Operator) syncClusterServiceVersion(obj interface{}) (syncError error) } else { syncError = fmt.Errorf("error transitioning ClusterServiceVersion: %s and error updating CSV status: %s", syncError, updateErr) } - } else { - metrics.EmitCSVMetric(clusterServiceVersion, outCSV) } } + // always emit csv metrics + metrics.EmitCSVMetric(clusterServiceVersion, outCSV) + operatorGroup := a.operatorGroupFromAnnotations(logger, clusterServiceVersion) if operatorGroup == nil { logger.WithField("reason", "no operatorgroup found for active CSV").Debug("skipping potential RBAC creation in target namespaces")