From 71299b31f3dafac6713d2ffdbfffa334327b396a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Ch=C3=A1vez?= Date: Tue, 22 Oct 2024 10:20:07 +0200 Subject: [PATCH] fix: only prints env key if there are env values to be passed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Carlos Chávez --- charts/falco/templates/_helpers.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/falco/templates/_helpers.tpl b/charts/falco/templates/_helpers.tpl index b51479658..d0dc58b99 100644 --- a/charts/falco/templates/_helpers.tpl +++ b/charts/falco/templates/_helpers.tpl @@ -280,8 +280,8 @@ be temporary and will stay here until we move this logic to the falcoctl tool. {{- with .Values.falcoctl.artifact.install.mounts.volumeMounts }} {{- toYaml . | nindent 4 }} {{- end }} - env: {{- if .Values.falcoctl.artifact.install.env }} + env: {{- include "falco.renderTemplate" ( dict "value" .Values.falcoctl.artifact.install.env "context" $) | nindent 4 }} {{- end }} {{- end -}} @@ -314,8 +314,8 @@ be temporary and will stay here until we move this logic to the falcoctl tool. {{- with .Values.falcoctl.artifact.follow.mounts.volumeMounts }} {{- toYaml . | nindent 4 }} {{- end }} - env: {{- if .Values.falcoctl.artifact.follow.env }} + env: {{- include "falco.renderTemplate" ( dict "value" .Values.falcoctl.artifact.follow.env "context" $) | nindent 4 }} {{- end }} {{- end -}}