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 }}