Helm Template Function empty: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Helm Templates =Overview= <syntaxhighlight lang='yaml'> {{- if (empty .Values.something) }} ... {{- end }} </syntaxhighlight>") |
|||
Line 9: | Line 9: | ||
{{- end }} | {{- end }} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Note that if .Values.something is numeric 0, empty() will evaluated to true. |
Revision as of 07:45, 5 January 2021
Internal
Overview
{{- if (empty .Values.something) }}
...
{{- end }}
Note that if .Values.something is numeric 0, empty() will evaluated to true.