diff --git a/bitnami/kube-prometheus/Chart.yaml b/bitnami/kube-prometheus/Chart.yaml index 4eb1ea6125..7c0ddb9af1 100644 --- a/bitnami/kube-prometheus/Chart.yaml +++ b/bitnami/kube-prometheus/Chart.yaml @@ -35,4 +35,4 @@ sources: - https://github.com/bitnami/containers/tree/main/bitnami/prometheus - https://github.com/bitnami/containers/tree/main/bitnami/alertmanager - https://github.com/prometheus-operator/kube-prometheus -version: 8.1.2 +version: 8.1.3 diff --git a/bitnami/kube-prometheus/templates/prometheus/prometheus.yaml b/bitnami/kube-prometheus/templates/prometheus/prometheus.yaml index e8e4bd6102..b6aa629d7b 100644 --- a/bitnami/kube-prometheus/templates/prometheus/prometheus.yaml +++ b/bitnami/kube-prometheus/templates/prometheus/prometheus.yaml @@ -143,6 +143,7 @@ spec: storage: volumeClaimTemplate: metadata: + {{- if or .Values.prometheus.persistence.annotations .Values.commonAnnotations }} annotations: {{- if .Values.prometheus.persistence.annotations }} {{- include "common.tplvalues.render" (dict "value" .Values.prometheus.persistence.annotations "context" $) | nindent 10 }} @@ -150,6 +151,7 @@ spec: {{- if .Values.commonAnnotations }} {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 10 }} {{- end }} + {{- end }} {{- if .Values.commonLabels }} labels: {{- include "common.tplvalues.render" (dict "value" .Values.commonLabels "context" $) | nindent 10 }} {{- end }} @@ -226,10 +228,10 @@ spec: {{- end }} {{- include "kube-prometheus.imagePullSecrets" . | indent 2 }} {{- if or .Values.prometheus.containers .Values.prometheus.thanos.create .Values.prometheus.containerSecurityContext.enabled .Values.prometheus.containerSecurityContext.enabled .Values.operator.prometheusConfigReloader.containerSecurityContext.enabled }} + {{- if .Values.prometheus.initContainers }} initContainers: - {{- if .Values.prometheus.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.prometheus.initContainers "context" $) | nindent 4 }} - {{- end }} + {{- include "common.tplvalues.render" (dict "value" .Values.prometheus.initContainers "context" $) | nindent 4 }} + {{- end }} containers: {{- if .Values.prometheus.thanos.create }} - name: thanos-sidecar