Skip to content

Commit

Permalink
fix(helm): add extraEnv for each pods
Browse files Browse the repository at this point in the history
close #34
  • Loading branch information
tchiotludo committed May 3, 2024
1 parent 44c3642 commit 8d0d450
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/kestra/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions charts/kestra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ deployments:
securityContext: {}
terminationGracePeriodSeconds: 30
extraContainers: []
extraEnv: []
autoscaler:
enabled: false
minReplicas: 1
Expand Down

0 comments on commit 8d0d450

Please sign in to comment.