Skip to content

Commit d5228e8

Browse files
committed
Add env var support
1 parent 3909cb6 commit d5228e8

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

charts/webhook-receiver/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type: application
66

77
# This is the chart version. This version number should be incremented each time you make changes
88
# to the chart and its templates, including the app version.
9-
version: 1.0.1-pre4
9+
version: 1.0.1-pre5
1010

1111
# This is the version number of the application being deployed. This version number should be
1212
# incremented each time you make changes to the application.

charts/webhook-receiver/templates/deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ spec:
3131
{{- toYaml .Values.securityContext | nindent 12 }}
3232
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3333
imagePullPolicy: {{ .Values.image.pullPolicy }}
34+
env:
35+
{{- range $pkey, $pval := .Values.env }}
36+
- name: {{ $pkey }}
37+
value: {{ quote $pval }}
38+
{{- end }}
3439
ports:
3540
- name: http
3641
containerPort: 9000

charts/webhook-receiver/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ tolerations: []
6969

7070
affinity: {}
7171

72+
# Use this to insert env values into the deployment
73+
env: []
74+
7275
hooks:
7376
webhook1:
7477
enable: true

0 commit comments

Comments
 (0)