Add support for environment variables

This commit is contained in:
Waqar Ahmed 2020-09-28 19:31:04 +05:00
parent 9e3834c541
commit 72b7ad506f
2 changed files with 9 additions and 3 deletions

View File

@ -31,3 +31,10 @@ spec:
- {{ . | quote}}
{{- end }}
{{- end }}
{{- if .Values.container.environment_variables }}
env:
{{- range .Values.container.environment_variables }}
- name: {{ .name | quote }}
value: {{ .value | quote }}
{{- end }}
{{- end }}

View File

@ -1,6 +1,4 @@
# Default values for mychart.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# Default values for ix-chart.
replicaCount: 1
@ -18,3 +16,4 @@ fullnameOverride: ""
container:
command: []
args: []
environment_variables: []