From e8357d5711d850189fc4058742ef7d9f2c31cb95 Mon Sep 17 00:00:00 2001 From: Anas Date: Wed, 4 Sep 2019 19:49:00 +0200 Subject: [PATCH] Redeploy pods on config changes. (#16835) Signed-off-by: Anas Ait Said Oubrahim --- stable/prometheus-mongodb-exporter/Chart.yaml | 2 +- stable/prometheus-mongodb-exporter/templates/deployment.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stable/prometheus-mongodb-exporter/Chart.yaml b/stable/prometheus-mongodb-exporter/Chart.yaml index ef6a9a5b28..58b3e9eaef 100644 --- a/stable/prometheus-mongodb-exporter/Chart.yaml +++ b/stable/prometheus-mongodb-exporter/Chart.yaml @@ -13,4 +13,4 @@ maintainers: name: prometheus-mongodb-exporter sources: - https://github.com/percona/mongodb_exporter -version: 2.2.0 +version: 2.2.1 diff --git a/stable/prometheus-mongodb-exporter/templates/deployment.yaml b/stable/prometheus-mongodb-exporter/templates/deployment.yaml index a150d005df..4a5c15b195 100644 --- a/stable/prometheus-mongodb-exporter/templates/deployment.yaml +++ b/stable/prometheus-mongodb-exporter/templates/deployment.yaml @@ -18,7 +18,10 @@ spec: template: metadata: annotations: - {{- toYaml .Values.podAnnotations | nindent 8 }} + checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} + {{- if .Values.podAnnotations }} + {{- toYaml .Values.podAnnotations | nindent 8 }} + {{- end }} labels: app.kubernetes.io/name: {{ include "prometheus-mongodb-exporter.name" . }} app.kubernetes.io/instance: {{ .Release.Name }}