From 4bf5b61a4ce7f96de49949e1382827f43ab9f9fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Vall=C3=A9s?= <3977183+jvallesm@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:15:23 +0200 Subject: [PATCH] chore(pipeline): apply environment variables on migration command (#1057) 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 --- charts/core/templates/pipeline-backend/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/core/templates/pipeline-backend/deployment.yaml b/charts/core/templates/pipeline-backend/deployment.yaml index 16c4325a..5066b5b4 100644 --- a/charts/core/templates/pipeline-backend/deployment.yaml +++ b/charts/core/templates/pipeline-backend/deployment.yaml @@ -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 }}