mirror of
https://github.com/truenas/charts.git
synced 2026-11-13 14:46:16 +00:00
Handle edge case of empty values converting to nil (#1114)
This commit is contained in:
1 parent
42ea4d99ed
commit
48c5adcfd1
3 files changed
+10
-2
No files matched your search
@@ -13,7 +13,8 @@ objectData: The object data to be used to render the container.
|
||||
- name: {{ $k | quote }}
|
||||
{{- if not (kindIs "map" $v) -}}
|
||||
{{- $value := "" -}}
|
||||
{{- if $v -}} {{/* Only tpl non-empty values */}}
|
||||
{{/* Only tpl valid values, there are cases that empty values after merges can be "<nil>" */}}
|
||||
{{- if not (kindIs "invalid" $v) -}}
|
||||
{{- $value = tpl (toString $v) $rootCtx -}}
|
||||
{{- end }}
|
||||
value: {{ $value | quote }}
|
||||
|
||||
Reference in new issue
Block a user