From 9f481221ab9b87eb0e1aa726f991ef0beba70fac Mon Sep 17 00:00:00 2001 From: Lyz Date: Thu, 11 Sep 2025 16:58:59 +0000 Subject: [PATCH] ci(helm): add custom environment variables to the deployment (#7784) Co-authored-by: jmp --- dev/helm/templates/deployment.yaml | 3 +++ dev/helm/values.yaml | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/dev/helm/templates/deployment.yaml b/dev/helm/templates/deployment.yaml index 4a7e3b8a..e4d1d197 100644 --- a/dev/helm/templates/deployment.yaml +++ b/dev/helm/templates/deployment.yaml @@ -81,6 +81,9 @@ spec: {{- end }} - name: HA_ACTIVE value: {{ .Values.replicaCount | int | le 2 | quote }} + {{- with .Values.extraEnvVars }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- with .Values.volumeMounts }} volumeMounts: {{- toYaml . | nindent 12 }} diff --git a/dev/helm/values.yaml b/dev/helm/values.yaml index 8e5e3667..db5496c0 100644 --- a/dev/helm/values.yaml +++ b/dev/helm/values.yaml @@ -138,6 +138,17 @@ sideload: ## Append extra trusted certificates for node process from extra volume via NODE_EXTRA_CA_CERTS variable # nodeExtraCaCerts: "/path/to/certs.pem" +## Additional environment variables to set +extraEnvVars: [] +# extraEnvVars: +# - name: CUSTOM_VAR +# value: "custom_value" +# - name: SECRET_VAR +# valueFrom: +# secretKeyRef: +# name: my-secret +# key: secret-key + ## This will override the postgresql chart values # externalPostgresql: # # note: ?sslmode=require => ?ssl=true