Helm Notable Values: Difference between revisions

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


Numeric zero evaluates as follows:
A numeric zero declared as:


<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml'>
myValue: 0
myValue: 0
</syntaxhighlight>
</syntaxhighlight>
evaluates as follows:


Evaluates to false:
Evaluates to false:

Revision as of 07:53, 5 January 2021

Internal

Overview

A numeric zero declared as:

myValue: 0

evaluates as follows:

Evaluates to false:

{{ if .Values.myValue }}

Evaluates to true:

{{ if empty .Values.myValue }}