k8wiz
Helm
Medium
Templates

What function can be used in templates to include other template blocks defined with 'define'?

Select your answer:

Show answer and explanation

Answer: include

Explanation

include renders a template defined with define and returns it as a string, so you can pipe the result, as in {{ include "mychart.labels" . | nindent 4 }}. The built-in template action renders too, but its output can't be piped, which is why charts use include.

Read more about Helm