mirror of
https://github.com/truenas/charts.git
synced 2024-04-21 15:21:45 +00:00
helm is weirdo
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user