Helm Template Function Printf: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 13: | Line 13: | ||
<syntaxhighlight lang='yaml'> | <syntaxhighlight lang='yaml'> | ||
{{ .Values.nuance | printf "%s-blue" }} | {{ .Values.nuance | printf "%s-blue" }} | ||
</syntaxhighlight> | |||
=Additional Examples= | |||
<syntaxhighlight lang='yaml'> | |||
...(list "A" (printf "B.%s" .Release.Namespace) "C") -}} | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 22:36, 19 October 2020
Internal
Overview
{{ printf "%s-blue" .Values.nuance }}
This also works:
{{ .Values.nuance | printf "%s-blue" }}
Additional Examples
...(list "A" (printf "B.%s" .Release.Namespace) "C") -}}