Skip to content

Commit

Permalink
chore(pipeline): apply environment variables on migration command (#1057
Browse files Browse the repository at this point in the history
)

Because

- We want to pass env variables to the migration command to perform
extra migrations in cloud-only environments.

This commit

- Reads the environment values defined in the Helm charts
  • Loading branch information
jvallesm authored Aug 5, 2024
1 parent f006be7 commit 4bf5b61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/core/templates/pipeline-backend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ spec:
- name: config
mountPath: {{ .Values.pipelineBackend.configPath }}
subPath: config.yaml
env:
{{- if .Values.pipelineBackend.extraEnv }}
{{- toYaml .Values.pipelineBackend.extraEnv | nindent 12 }}
{{- end }}
- name: pipeline-backend-init
image: {{ .Values.pipelineBackend.image.repository }}:{{ .Values.pipelineBackend.image.tag }}
imagePullPolicy: {{ .Values.pipelineBackend.image.pullPolicy }}
Expand Down

0 comments on commit 4bf5b61

Please sign in to comment.