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