Helm Named Template Recipes

From NovaOrdis Knowledge Base
Jump to: navigation, search

Internal


Variable Equivalent

Define the partial in _helpers.tpl:

{{- define "mychart.nuancedColor" -}}
{{- printf "%s-%s" .Values.nuance .Values.color -}}
{{- end -}}

Use it:

   ...
   nuancedColor: {{ template "mychart.nuancedColor" . }}
   ...