diff --git a/charts/enterprise/prometheus/Chart.yaml b/charts/enterprise/prometheus/Chart.yaml index 8e129252d9d..3e8982566d3 100644 --- a/charts/enterprise/prometheus/Chart.yaml +++ b/charts/enterprise/prometheus/Chart.yaml @@ -29,7 +29,7 @@ sources: - https://github.com/prometheus-community/helm-charts - https://github.com/prometheus-operator/kube-prometheus type: application -version: 12.1.1 +version: 12.1.2 annotations: truecharts.org/catagories: | - metrics diff --git a/charts/enterprise/prometheus/templates/prometheus/_prometheus.tpl b/charts/enterprise/prometheus/templates/prometheus/_prometheus.tpl index 2410c614c4b..e4c20bc6eb1 100644 --- a/charts/enterprise/prometheus/templates/prometheus/_prometheus.tpl +++ b/charts/enterprise/prometheus/templates/prometheus/_prometheus.tpl @@ -126,8 +126,9 @@ spec: {{- if .Values.prometheus.remoteRead }} remoteRead: {{- include "tc.v1.common.tplvalues.render" (dict "value" .Values.prometheus.remoteRead "context" $) | nindent 4 }} {{- end }} - {{- if .Values.prometheus.remoteWrite }} - remoteWrite: {{- include "tc.v1.common.tplvalues.render" (dict "value" .Values.prometheus.remoteWrite "context" $) | nindent 4 }} + {{- with .Values.prometheus.remoteWrite }} + remoteWrite: + {{- tpl (toYaml .) $ | nindent 4 }} {{- end }} {{- if .Values.prometheus.podSecurityContext.enabled }} securityContext: {{- omit .Values.prometheus.podSecurityContext "enabled" | toYaml | nindent 4 }}