Helm Template Function Printf

From NovaOrdis Knowledge Base
Revision as of 09:38, 5 January 2021 by Ovidiu (talk | contribs) (→‎Print the Type)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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")