From bc1e0c423f24f266bfe8cc8db078895199b06e27 Mon Sep 17 00:00:00 2001 From: grantatspothero <43971820+grantatspothero@users.noreply.github.com> Date: Sun, 28 Apr 2019 18:08:37 -0500 Subject: [PATCH] Add configmap checksums to grafana deploy (#13256) Will force helm to roll the grafana deployment when a configmap change happens Signed-off-by: Grant Nicholas --- stable/grafana/Chart.yaml | 2 +- stable/grafana/templates/deployment.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stable/grafana/Chart.yaml b/stable/grafana/Chart.yaml index 9d85daee48..e7d30dcc3e 100755 --- a/stable/grafana/Chart.yaml +++ b/stable/grafana/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: grafana -version: 3.3.2 +version: 3.3.3 appVersion: 6.1.4 kubeVersion: "^1.8.0-0" description: The leading tool for querying and visualizing time series and metrics. diff --git a/stable/grafana/templates/deployment.yaml b/stable/grafana/templates/deployment.yaml index 22e52ea8a8..d161799762 100644 --- a/stable/grafana/templates/deployment.yaml +++ b/stable/grafana/templates/deployment.yaml @@ -27,8 +27,11 @@ spec: labels: app: {{ template "grafana.name" . }} release: {{ .Release.Name }} -{{- with .Values.podAnnotations }} annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + checksum/dashboards-json-config: {{ include (print $.Template.BasePath "/dashboards-json-configmap.yaml") . | sha256sum }} + checksum/sc-dashboard-provider-config: {{ include (print $.Template.BasePath "/configmap-dashboard-provider.yaml") . | sha256sum }} +{{- with .Values.podAnnotations }} {{ toYaml . | indent 8 }} {{- end }} spec: