mirror of
https://github.com/truenas/charts.git
synced 2026-11-26 15:26:05 +00:00
13 lines
484 B
Smarty
13 lines
484 B
Smarty
{{/*
|
|
Render environment variables
|
|
*/}}
|
|
{{- define "common.containers.environmentVariables" -}}
|
|
{{- $values := . -}}
|
|
{{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "environmentVariables")) -}}
|
|
{{- range $envVariable := $values.environmentVariables -}}
|
|
{{- include "common.schema.validateKeys" (dict "values" $envVariable "checkKeys" (list "name" "value")) -}}
|
|
- name: {{ $envVariable.name }}
|
|
value: {{ $envVariable.value }}
|
|
{{- end -}}
|
|
{{- end -}}
|