Compare commits

...

1 Commits

Author SHA1 Message Date
Abhishek Kumar Singh
f27488d550 chore: remove ruleSource and ruleId from default channel creation template title 2025-12-22 19:11:42 +05:30

View File

@@ -80,9 +80,13 @@ function CreateAlertChannels({
{{- if gt (len .CommonLabels) (len .GroupLabels) -}}
{{" "}}(
{{- with .CommonLabels.Remove .GroupLabels.Names }}
{{- $first := true -}}
{{- range $index, $label := .SortedPairs -}}
{{ if $index }}, {{ end }}
{{- $label.Name }}="{{ $label.Value -}}"
{{- if and (ne $label.Name "ruleSource") (ne $label.Name "ruleId") -}}
{{- if not $first }}, {{ end -}}
{{- $label.Name }}="{{ $label.Value -}}"
{{- $first = false -}}
{{- end -}}
{{- end }}
{{- end -}}
)