Helm Template Function Printf: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 14: Line 14:
{{ .Values.nuance | printf "%s-blue" }}
{{ .Values.nuance | printf "%s-blue" }}
</syntaxhighlight>
</syntaxhighlight>
=Print the Type=


=Additional Examples=
=Additional Examples=

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")
{{ printf "myVar type: %T" .Values.myVar }}