Helm Template Function Printf: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Helm Templates =Overview= {{ printf "%s-blue" .Values.nuance }}") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
<syntaxhighlight lang='yaml'> | |||
{{ printf "%s-blue" .Values.nuance }} | |||
</syntaxhighlight> | |||
This also works: | |||
<syntaxhighlight lang='yaml'> | |||
{{ .Values.nuance | printf "%s-blue" }} | |||
</syntaxhighlight> | |||
=Print the Type= | |||
<syntaxhighlight lang='yaml'> | |||
{{ printf "myVar type: %T" .Values.myVar }} | |||
</syntaxhighlight> | |||
=Additional Examples= | |||
<syntaxhighlight lang='yaml'> | |||
(list "A" (printf "B.%s" .Release.Namespace) "C") | |||
</syntaxhighlight> |
Latest 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
{{ printf "myVar type: %T" .Values.myVar }}
Additional Examples
(list "A" (printf "B.%s" .Release.Namespace) "C")