Helm Notable Values: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 27: Line 27:
=Boolean False=
=Boolean False=


=Empty Value=
=Empty Value (nil)=


<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml'>
myValue:  
myValue:  
</syntaxhighlight>
</syntaxhighlight>


=Empty String=
=Empty String=

Revision as of 08:25, 5 January 2021

Internal

Numeric Zero

For a numeric zero declared as:

myValue: 0

the following expressions evaluate to false:

Evaluates to false:

{{ if .Values.myValue }}

the following expressions evaluate to true:

{{ if empty .Values.myValue }}
{{ if (eq 0 (int .Values.myValue)) }}

Boolean True

Boolean False

Empty Value (nil)

myValue:

Empty String