From 7f2b821b5f7e666fd8033077cfbe2baa90ec2860 Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Tue, 30 Apr 2019 20:38:56 -0700 Subject: [PATCH] [stable/grafana] Add secret hash to podspec so grafana pods redeploy on secret regen (#13427) * Add secret hash to podspec so grafana pods redeploy on secret regen Signed-off-by: Lee Cattarin * Version bump Signed-off-by: Lee Cattarin --- 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 0d10f19047..d0b2f08852 100755 --- a/stable/grafana/Chart.yaml +++ b/stable/grafana/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: grafana -version: 3.3.4 +version: 3.3.5 appVersion: 6.1.6 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 d161799762..d86565862c 100644 --- a/stable/grafana/templates/deployment.yaml +++ b/stable/grafana/templates/deployment.yaml @@ -30,7 +30,10 @@ spec: 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 }} + checksum/sc-dashboard-provider-config: {{ include (print $.Template.BasePath "/configmap-dashboard-provider.yaml") . | sha256sum }} +{{- if not .Values.admin.existingSecret }} + checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} +{{- end }} {{- with .Values.podAnnotations }} {{ toYaml . | indent 8 }} {{- end }}