Helm Template Function empty: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Helm Templates =Overview= <syntaxhighlight lang='yaml'> {{- if (empty .Values.something) }} ... {{- end }} </syntaxhighlight>")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
{{- end }}
{{- end }}
</syntaxhighlight>
</syntaxhighlight>
<span id='Numeric_Zero'></span>Note that if .Values.something is numeric 0, empty() will evaluated to true. Also see: {{Internal|Helm_Notable_Values|Notable Values}}

Latest revision as of 08:22, 5 January 2021

Internal

Overview

{{- if (empty .Values.something) }}
...
{{- end }}

Note that if .Values.something is numeric 0, empty() will evaluated to true. Also see:

Notable Values