Helm Template Function Printf: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 20: Line 20:
<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml'>
(list "A" (printf "B.%s" .Release.Namespace) "C")
(list "A" (printf "B.%s" .Release.Namespace) "C")
</syntaxhighlight>
<syntaxhighlight lang='yaml'>
{{ printf "myVar type: %T" .Values.myVar }}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 09:38, 5 January 2021

Internal

Overview

{{ printf "%s-blue" .Values.nuance }}

This also works:

{{ .Values.nuance | printf "%s-blue" }}

Print the Type

Additional Examples

(list "A" (printf "B.%s" .Release.Namespace) "C")