From e7598dc380653b070593c3e8e5ab9eb3618b3416 Mon Sep 17 00:00:00 2001 From: Konstantin Grachev Date: Wed, 16 Nov 2022 14:37:07 +0300 Subject: [PATCH] add checksum/secret annotation --- templates/n8n-deployment.yaml | 1 + templates/webhook-deployment.yaml | 1 + templates/worker-deployment.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/templates/n8n-deployment.yaml b/templates/n8n-deployment.yaml index 3f1df38..d2c6e89 100644 --- a/templates/n8n-deployment.yaml +++ b/templates/n8n-deployment.yaml @@ -6,6 +6,7 @@ metadata: {{- include "n8n.labels" . | nindent 4 }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }} spec: replicas: 1 selector: diff --git a/templates/webhook-deployment.yaml b/templates/webhook-deployment.yaml index 325783a..c1a6c3d 100644 --- a/templates/webhook-deployment.yaml +++ b/templates/webhook-deployment.yaml @@ -6,6 +6,7 @@ metadata: {{- include "n8n.labels" . | nindent 4 }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + checksum/secret: {{ include (print $.Template.BasePath "/secrets.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 bf49a15..2c84a0b 100644 --- a/templates/worker-deployment.yaml +++ b/templates/worker-deployment.yaml @@ -6,6 +6,7 @@ metadata: {{- include "n8n.labels" . | nindent 4 }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }} spec: {{- if not .Values.worker.autoscaling.enabled }} replicas: {{ .Values.worker.replicaCount }}