0PricingLogin
Helm Academy · Lesson

tpl: Rendering Strings from Values

Evaluating template expressions stored in values.

Templates Inside Values

Sometimes a value in values.yaml itself contains template syntax. By default Helm treats it as a plain string and never evaluates it.

Meet the tpl Function

The tpl function takes a string and a context, then renders that string as a Go template right where you call it.

{{ tpl .Values.greeting . }}

All lessons in this course

  1. Deep Merge with mergeOverwrite and dict
  2. tpl: Rendering Strings from Values
  3. Looping Files with range Over .Files.Glob
  4. fail and Custom Validation Guards
← Back to Helm Academy