diff --git a/charts/prometheus/templates/cm.yaml b/charts/prometheus/templates/cm.yaml index 0063f21b79d0..8713bd1ea25f 100644 --- a/charts/prometheus/templates/cm.yaml +++ b/charts/prometheus/templates/cm.yaml @@ -2,9 +2,9 @@ apiVersion: v1 kind: ConfigMap metadata: -{{- with .Values.server }} +{{- with .Values.server.configMapAnnotations }} annotations: - {{- toYaml .configMapAnnotations | nindent 4 }} + {{- toYaml . | nindent 4 }} {{- end }} labels: {{- include "prometheus.server.labels" . | nindent 4 }}