_environment.tpl 484 B

123456789101112
  1. {{/*
  2. Render environment variables
  3. */}}
  4. {{- define "common.containers.environmentVariables" -}}
  5. {{- $values := . -}}
  6. {{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "environmentVariables")) -}}
  7. {{- range $envVariable := $values.environmentVariables -}}
  8. {{- include "common.schema.validateKeys" (dict "values" $envVariable "checkKeys" (list "name" "value")) -}}
  9. - name: {{ $envVariable.name }}
  10. value: {{ $envVariable.value }}
  11. {{- end -}}
  12. {{- end -}}