From 8d0d45091f46023301a165a258814867d7dc3b0a Mon Sep 17 00:00:00 2001 From: Ludovic DEHON Date: Fri, 3 May 2024 17:55:10 +0200 Subject: [PATCH] fix(helm): add extraEnv for each pods close #34 --- charts/kestra/templates/_helpers.tpl | 4 +++- charts/kestra/values.yaml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/kestra/templates/_helpers.tpl b/charts/kestra/templates/_helpers.tpl index 8d1432f..731f56c 100644 --- a/charts/kestra/templates/_helpers.tpl +++ b/charts/kestra/templates/_helpers.tpl @@ -225,7 +225,9 @@ spec: - -c - "exec {{ $.Values.executable }} {{ tpl $deployment.command $ }}" env: - {{- if $.Values.extraEnv }}{{ toYaml $.Values.extraEnv | trim | nindent 12 }}{{ end }} + {{- with default $.Values.extraEnv $deployment.extraEnv }} + {{- toYaml . | trim | nindent 12 }} + {{- end }} {{- include "kestra.configurationPath" $ | nindent 12 }} {{- if or .Values.extraConfigMapEnvFrom .Values.extraSecretEnvFrom }} envFrom: diff --git a/charts/kestra/values.yaml b/charts/kestra/values.yaml index 2926d7b..cab2b01 100644 --- a/charts/kestra/values.yaml +++ b/charts/kestra/values.yaml @@ -43,6 +43,7 @@ deployments: securityContext: {} terminationGracePeriodSeconds: 30 extraContainers: [] + extraEnv: [] autoscaler: enabled: false minReplicas: 1