Skip to content

Commit

Permalink
Merge monitoring labels from global values (#1267)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Sep 1, 2024
1 parent 0b3403a commit 53b2b7d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions charts/kubedb/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,7 @@ Returns whether the ServiceMonitor will be labeled with custom label
Returns the ServiceMonitor labels
*/}}
{{- define "monitoring.servicemonitor-label" -}}
{{- range $key, $val := .Values.monitoring.serviceMonitor.labels }}
{{- range $key, $val := mergeOverwrite dict .Values.monitoring.serviceMonitor.labels .Values.global.monitoring.serviceMonitor.labels }}
{{ $key }}: {{ $val }}
{{- else }}
{{- range $key, $val := .Values.global.monitoring.serviceMonitor.labels }}
{{ $key }}: {{ $val }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 53b2b7d

Please sign in to comment.