diff --git a/ntfy/templates/deployment.yaml b/ntfy/templates/deployment.yaml index 2c5565f..c496d54 100644 --- a/ntfy/templates/deployment.yaml +++ b/ntfy/templates/deployment.yaml @@ -39,9 +39,8 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} args: [ "serve" ] env: - {{- range $key, $value := .Values.ntfy.env }} - - name: {{ $key }} - value: {{ $value | quote }} + {{- with .Values.ntfy.env }} + {{- toYaml . | nindent 12 }} {{- end }} {{- include "ntfy.extraSecretEnvironmentVars" .Values.ntfy | nindent 12 }} envFrom: