This commit is contained in:
Stavros kois
2023-01-25 17:34:46 +02:00
parent d41ef97e2e
commit d87e03f9c9
@@ -6,8 +6,13 @@
{{- $containerName := .containerName -}}
{{- $root := .root -}}
{{/* Slices cannot be converted toYaml safely,
temporary convert it to dict. Will be removed
once the tpl is moved in upper level
*/}}
{{- $envDict := (dict "envs" $envList) -}}
{{- if $envList -}}
{{- $envList = fromYaml (tpl ($envList | toYaml) $root) -}}
{{- $envList = (fromYaml (tpl ($envDict | toYaml) $root)).envs -}}
{{- end -}}
{{- $dupeCheck := dict -}}