Skip to content

Commit 9f48122

Browse files
lyz-codejmpsf
andauthored
ci(helm): add custom environment variables to the deployment (#7784)
Co-authored-by: jmp <[email protected]>
1 parent cd77f36 commit 9f48122

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

dev/helm/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ spec:
8181
{{- end }}
8282
- name: HA_ACTIVE
8383
value: {{ .Values.replicaCount | int | le 2 | quote }}
84+
{{- with .Values.extraEnvVars }}
85+
{{- toYaml . | nindent 12 }}
86+
{{- end }}
8487
{{- with .Values.volumeMounts }}
8588
volumeMounts:
8689
{{- toYaml . | nindent 12 }}

dev/helm/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,17 @@ sideload:
138138
## Append extra trusted certificates for node process from extra volume via NODE_EXTRA_CA_CERTS variable
139139
# nodeExtraCaCerts: "/path/to/certs.pem"
140140

141+
## Additional environment variables to set
142+
extraEnvVars: []
143+
# extraEnvVars:
144+
# - name: CUSTOM_VAR
145+
# value: "custom_value"
146+
# - name: SECRET_VAR
147+
# valueFrom:
148+
# secretKeyRef:
149+
# name: my-secret
150+
# key: secret-key
151+
141152
## This will override the postgresql chart values
142153
# externalPostgresql:
143154
# # note: ?sslmode=require => ?ssl=true

0 commit comments

Comments
 (0)