Helm Template Function Printf

From NovaOrdis Knowledge Base
Revision as of 09:38, 5 January 2021 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

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 }}