Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoBraveCoding committed Feb 4, 2025
1 parent b6fea18 commit 1d69d65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions operator/internal/manifests/openshift/alertingrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions operator/internal/manifests/openshift/recordingrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d69d65

Please sign in to comment.