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 <grant@spothero.com>
This commit is contained in:
grantatspothero
2019-04-28 16:08:37 -07:00
committed by Kubernetes Prow Robot
parent 535a72d9f0
commit bc1e0c423f
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -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.
+4 -1
View File
@@ -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: