Helm Named Template Recipes

From NovaOrdis Knowledge Base
Revision as of 17:50, 30 August 2019 by Ovidiu (talk | contribs) (→‎Internal)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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" . }}
   ...