Helm Notable Values: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
=Overview=
=Overview=


A numeric zero declared as:
For a numeric zero declared as:


<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml'>
Line 11: Line 11:
</syntaxhighlight>
</syntaxhighlight>


evaluates as follows:
the following expressions evaluate to false:


Evaluates to false:
Evaluates to false:
Line 18: Line 18:
</syntaxhighlight>
</syntaxhighlight>


Evaluates to true:
the following expressions evaluate to true:
<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml'>
{{ if empty .Values.myValue }}
{{ if empty .Values.myValue }}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 07:54, 5 January 2021

Internal

Overview

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 }}