diff --git a/charts/datahub/subcharts/datahub-frontend/templates/servicemonitor.yaml b/charts/datahub/subcharts/datahub-frontend/templates/servicemonitor.yaml index 0c5ae6cd1..44455da3e 100644 --- a/charts/datahub/subcharts/datahub-frontend/templates/servicemonitor.yaml +++ b/charts/datahub/subcharts/datahub-frontend/templates/servicemonitor.yaml @@ -5,9 +5,9 @@ metadata: name: {{ printf "%s-%s" .Release.Name "datahub-frontend" }} labels: {{- include "datahub-frontend.labels" . | nindent 4 }} - {{ - range $key, $val := .Values.serviceMonitor.extraLabels }} + {{- range $key, $val := .Values.serviceMonitor.extraLabels }} {{ $key }}: {{ $val | quote }} - {{ - end }} + {{- end }} {{- with .Values.serviceMonitor.annotations }} annotations: {{- toYaml . | nindent 4 }} diff --git a/charts/datahub/subcharts/datahub-gms/templates/servicemonitor.yaml b/charts/datahub/subcharts/datahub-gms/templates/servicemonitor.yaml index 7c0daa72a..b8e5bf922 100644 --- a/charts/datahub/subcharts/datahub-gms/templates/servicemonitor.yaml +++ b/charts/datahub/subcharts/datahub-gms/templates/servicemonitor.yaml @@ -5,9 +5,9 @@ metadata: name: {{ printf "%s-%s" .Release.Name "datahub-gms" }} labels: {{- include "datahub-gms.labels" . | nindent 4 }} - {{ - range $key, $val := .Values.serviceMonitor.extraLabels }} + {{- range $key, $val := .Values.serviceMonitor.extraLabels }} {{ $key }}: {{ $val | quote }} - {{ - end }} + {{- end }} {{- with .Values.serviceMonitor.annotations }} annotations: {{- toYaml . | nindent 4 }}