From fba44456e67fe7f0652c3e1ede0f192664febe5f Mon Sep 17 00:00:00 2001 From: Konstantin Grachev Date: Wed, 16 Nov 2022 16:28:54 +0300 Subject: [PATCH] Include default secrets if extraEnvVarsSecret not present --- templates/n8n-deployment.yaml | 3 +++ templates/webhook-deployment.yaml | 3 +++ templates/worker-deployment.yaml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/templates/n8n-deployment.yaml b/templates/n8n-deployment.yaml index 451c311..acc8984 100644 --- a/templates/n8n-deployment.yaml +++ b/templates/n8n-deployment.yaml @@ -39,6 +39,9 @@ spec: {{- if .Values.n8n.extraEnvVarsSecret }} - secretRef: name: {{ .Values.n8n.extraEnvVarsSecret }} + {{- else }} + - secretRef: + name: {{ include "n8n.fullname" . }} {{- end }} ports: - name: http diff --git a/templates/webhook-deployment.yaml b/templates/webhook-deployment.yaml index c1a6c3d..1d3a5ff 100644 --- a/templates/webhook-deployment.yaml +++ b/templates/webhook-deployment.yaml @@ -44,6 +44,9 @@ spec: {{- if .Values.webhook.extraEnvVarsSecret }} - secretRef: name: {{ .Values.webhook.extraEnvVarsSecret }} + {{- else }} + - secretRef: + name: {{ include "n8n.fullname" . }} {{- end }} ports: - name: http diff --git a/templates/worker-deployment.yaml b/templates/worker-deployment.yaml index 2c84a0b..43229dc 100644 --- a/templates/worker-deployment.yaml +++ b/templates/worker-deployment.yaml @@ -44,6 +44,9 @@ spec: {{- if .Values.worker.extraEnvVarsSecret }} - secretRef: name: {{ .Values.worker.extraEnvVarsSecret }} + {{- else }} + - secretRef: + name: {{ include "n8n.fullname" . }} {{- end }} resources: {{- toYaml .Values.worker.resources | nindent 12 }}