Skip to content

Commit

Permalink
fix: only prints env key if there are env values to be passed.
Browse files Browse the repository at this point in the history
Signed-off-by: José Carlos Chávez <[email protected]>
  • Loading branch information
jcchavezs committed Oct 22, 2024
1 parent 6ff5758 commit 71299b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/falco/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down Expand Up @@ -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 -}}
Expand Down

0 comments on commit 71299b3

Please sign in to comment.