From c2c92554625a4a2703fb5a53fc785372d393b5ba Mon Sep 17 00:00:00 2001 From: Konstantin Grachev Date: Wed, 16 Nov 2022 14:33:18 +0300 Subject: [PATCH] add checksum/config annotation --- templates/{config.yaml => configmap.yaml} | 0 templates/n8n-deployment.yaml | 2 ++ templates/webhook-deployment.yaml | 2 ++ templates/worker-deployment.yaml | 2 ++ 4 files changed, 6 insertions(+) rename templates/{config.yaml => configmap.yaml} (100%) diff --git a/templates/config.yaml b/templates/configmap.yaml similarity index 100% rename from templates/config.yaml rename to templates/configmap.yaml diff --git a/templates/n8n-deployment.yaml b/templates/n8n-deployment.yaml index 372dfa2..3f1df38 100644 --- a/templates/n8n-deployment.yaml +++ b/templates/n8n-deployment.yaml @@ -4,6 +4,8 @@ metadata: name: {{ include "n8n.fullname" . }} labels: {{- include "n8n.labels" . | nindent 4 }} + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} spec: replicas: 1 selector: diff --git a/templates/webhook-deployment.yaml b/templates/webhook-deployment.yaml index 73d60c8..325783a 100644 --- a/templates/webhook-deployment.yaml +++ b/templates/webhook-deployment.yaml @@ -4,6 +4,8 @@ metadata: name: {{ include "n8n.fullname" . }}-webhook labels: {{- include "n8n.labels" . | nindent 4 }} + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} spec: {{- if not .Values.webhook.autoscaling.enabled }} replicas: {{ .Values.webhook.replicaCount }} diff --git a/templates/worker-deployment.yaml b/templates/worker-deployment.yaml index 7bd57be..bf49a15 100644 --- a/templates/worker-deployment.yaml +++ b/templates/worker-deployment.yaml @@ -4,6 +4,8 @@ metadata: name: {{ include "n8n.fullname" . }}-worker labels: {{- include "n8n.labels" . | nindent 4 }} + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} spec: {{- if not .Values.worker.autoscaling.enabled }} replicas: {{ .Values.worker.replicaCount }}