diff --git a/charts/peertube/templates/deployment.yaml b/charts/peertube/templates/deployment.yaml index 58808b8..46de03e 100644 --- a/charts/peertube/templates/deployment.yaml +++ b/charts/peertube/templates/deployment.yaml @@ -118,12 +118,12 @@ spec: name: {{ .Values.externalRedis.existingSecret }} {{- end }} {{- end }} -{{- if .Values.config.mail.externalSecret }} +{{- if .Values.config.mail.existingSecret }} - name: PEERTUBE_SMTP_PASSWORD valueFrom: secretKeyRef: - key: {{ .Values.config.mail.externalSecretKey | default "smtp-password" }} - name: {{ .Values.config.mail.externalSecret }} + key: {{ .Values.config.mail.existingSecretKey | default "smtp-password" }} + name: {{ .Values.config.mail.existingSecret }} {{- end }} {{- with .Values.extraEnv }} {{- . | toYaml | nindent 12 }}