From f774dc2766a3d072e14ea331f845adf868a3c178 Mon Sep 17 00:00:00 2001 From: pat-s Date: Mon, 15 Jul 2024 19:07:57 +0200 Subject: [PATCH] revamp env injection --- ntfy/templates/deployment.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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: