From d5544146d0ee1d34fc8a582e4813456e89dc1b31 Mon Sep 17 00:00:00 2001 From: PatxD Date: Fri, 29 May 2020 03:27:15 -0400 Subject: [PATCH] Automatically Roll Deployments (#22525) Automatically Roll Deployments on configmap and secret changes Signed-off-by: Patrick Desnoyers <18215385+PatxD@users.noreply.github.com> --- stable/mercure/Chart.yaml | 2 +- stable/mercure/templates/deployment.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stable/mercure/Chart.yaml b/stable/mercure/Chart.yaml index 9ab9e1f1d6..7203abee65 100644 --- a/stable/mercure/Chart.yaml +++ b/stable/mercure/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.8.0" description: The Mercure hub allows to push data updates using the Mercure protocol to web browsers and other HTTP clients in a convenient, fast, reliable and battery-efficient way name: mercure -version: 3.0.0 +version: 3.0.1 keywords: - mercure - hub diff --git a/stable/mercure/templates/deployment.yaml b/stable/mercure/templates/deployment.yaml index cde1d490a8..b5cca2aa44 100644 --- a/stable/mercure/templates/deployment.yaml +++ b/stable/mercure/templates/deployment.yaml @@ -15,6 +15,9 @@ spec: labels: app.kubernetes.io/name: {{ include "mercure.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: