Helm Template Function Printf

From NovaOrdis Knowledge Base
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")