Helm Template Function Printf: Difference between revisions
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
=Print the Type= | =Print the Type= | ||
<syntaxhighlight lang='yaml'> | <syntaxhighlight lang='yaml'> | ||
{{ printf "myVar type: %T" .Values.myVar }} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
=Additional Examples= | |||
<syntaxhighlight lang='yaml'> | <syntaxhighlight lang='yaml'> | ||
(list "A" (printf "B.%s" .Release.Namespace) "C") | |||
</syntaxhighlight> | </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")