Helm Notable Values: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 21: Line 21:
<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml'>
{{ if empty .Values.myValue }}
{{ if empty .Values.myValue }}
{{ if (eq 0 (int .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 }}
{{ if (eq 0 (int .Values.myValue)) }}