Skip to content

Commit 626e5d7

Browse files
authored
Allow setting other environment variables in Helm chart (#103)
1 parent bd1d8a9 commit 626e5d7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: helm/templates/deployment.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,17 @@ spec:
4444
{{- toYaml .Values.securityContext | nindent 12 }}
4545
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
4646
imagePullPolicy: {{ .Values.image.pullPolicy }}
47-
{{- if .Values.persistence.artifactory.enabled }}
4847
env:
48+
{{- if .Values.persistence.artifactory.enabled }}
4949
- name: "ARTIFACTORY_TOKEN"
5050
valueFrom:
5151
secretKeyRef:
5252
name: artifactory
5353
key: token
5454
{{- end }}
55+
{{- with .Values.extraEnv }}
56+
{{- toYaml . | nindent 12 }}
57+
{{- end }}
5558
ports:
5659
- name: http
5760
containerPort: {{ .Values.service.port }}

Diff for: helm/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ image:
1010
# Overrides the image tag whose default is the chart appVersion.
1111
tag: ""
1212

13+
extraEnv: []
14+
1315
imagePullSecrets: []
1416
nameOverride: ""
1517
fullnameOverride: ""

0 commit comments

Comments
 (0)