Helm Template Function kindIs: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * http://masterminds.github.io/sprig/reflection.html =Internal= * Helm Templates")
 
 
Line 5: Line 5:


* [[Helm Templates#kindIs|Helm Templates]]
* [[Helm Templates#kindIs|Helm Templates]]
=Overview=
<syntaxhighlight lang='yaml'>
{{- if kindIs "float64" .Values.myValue -}}
    {{- if .Values.myValue -}}
        {{- .Values.myValue -}}
    {{- else -}}
        0
    {{- end -}}
{{- end -}}
</syntaxhighlight>

Latest revision as of 09:04, 5 January 2021

External

Internal

Overview

{{- if kindIs "float64" .Values.myValue -}}
    {{- if .Values.myValue -}}
        {{- .Values.myValue -}}
    {{- else -}}
        0
    {{- end -}}
{{- end -}}