mirror of
https://github.com/truenas/charts.git
synced 2026-04-24 10:30:37 +08:00
Add support for environment variables
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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: []
|
||||
|
||||
Reference in New Issue
Block a user