From 1d69d656e97197eed53fca30116266028eee43ad Mon Sep 17 00:00:00 2001 From: Joao Marcal Date: Tue, 4 Feb 2025 10:13:47 +0000 Subject: [PATCH] fix typo --- operator/internal/manifests/openshift/alertingrule.go | 5 +---- operator/internal/manifests/openshift/recordingrule.go | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/operator/internal/manifests/openshift/alertingrule.go b/operator/internal/manifests/openshift/alertingrule.go index 0ffc5ff6a47e8..29f8b596433c7 100644 --- a/operator/internal/manifests/openshift/alertingrule.go +++ b/operator/internal/manifests/openshift/alertingrule.go @@ -9,10 +9,7 @@ import ( func AlertingRuleTenantLabels(ar *lokiv1.AlertingRule) { switch ar.Spec.TenantID { case tenantApplication: - appendAlertingRuleLabels(ar, map[string]string{ - opaDefaultLabelMatchers: ar.Namespace, - ocpMonitoringGroupByLabel: ar.Namespace, - } + labels := map[string]string{} labelMatchers := strings.Split(opaDefaultLabelMatchers, ",") for _, label := range labelMatchers { labels[label] = ar.Namespace diff --git a/operator/internal/manifests/openshift/recordingrule.go b/operator/internal/manifests/openshift/recordingrule.go index c7c8c249b9649..5b3f0bfdd8040 100644 --- a/operator/internal/manifests/openshift/recordingrule.go +++ b/operator/internal/manifests/openshift/recordingrule.go @@ -9,10 +9,7 @@ import ( func RecordingRuleTenantLabels(r *lokiv1.RecordingRule) { switch r.Spec.TenantID { case tenantApplication: - appendRecordingRuleLabels(r, map[string]string{ - opaDefaultLabelMatchers: r.Namespace, - ocpMonitoringGroupByLabel: r.Namespace, - } + labels := map[string]string{} labelMatchers := strings.Split(opaDefaultLabelMatchers, ",") for _, label := range labelMatchers { labels[label] = r.Namespace