helm is weirdo

This commit is contained in:
Stavros kois
2023-01-25 17:38:58 +02:00
parent d87e03f9c9
commit daf3f1ade5
2 changed files with 7 additions and 4 deletions
+5 -1
View File
@@ -6,8 +6,12 @@
{{- $root := .root -}}
{{- $containerName := .containerName -}}
{{/* We need to make sure that is always dict. With nested values.
Will be removed once the tpl is moved in upper level
*/}}
{{- $envDict := (dict "envs" $envs) -}}
{{- if $envs -}}
{{- $envs = fromYaml (tpl ($envs | toYaml) $root) -}}
{{- $envs = (fromYaml (tpl ($envDict | toYaml) $root)).envs -}}
{{- end -}}
{{- $dupeCheck := dict -}}
@@ -6,9 +6,8 @@
{{- $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
{{/* We need to make sure that is always dict. With nested values.
Will be removed once the tpl is moved in upper level
*/}}
{{- $envDict := (dict "envs" $envList) -}}
{{- if $envList -}}