Difference between revisions of "Helm Template Function Printf"

From NovaOrdis Knowledge Base
Jump to: navigation, search
(Created page with "=Internal= * Helm Templates =Overview= {{ printf "%s-blue" .Values.nuance }}")
 
 
Line 5: Line 5:
 
=Overview=
 
=Overview=
  
  {{ printf "%s-blue" .Values.nuance }}
+
<syntaxhighlight lang='yaml'>
 +
{{ printf "%s-blue" .Values.nuance }}
 +
</syntaxhighlight>
 +
 
 +
This also works:
 +
 
 +
<syntaxhighlight lang='yaml'>
 +
{{ .Values.nuance | printf "%s-blue" }}
 +
</syntaxhighlight>

Latest revision as of 00:13, 10 October 2019

Internal

Overview

{{ printf "%s-blue" .Values.nuance }}

This also works:

{{ .Values.nuance | printf "%s-blue" }}