k8wiz
Helm
Medium
Templates

Which template function returns the YAML representation of an object?

Select your answer:

Show answer and explanation

Answer: toYaml

Explanation

toYaml turns a value, such as a map from values.yaml, into YAML text, usually piped into nindent, as in {{ toYaml .Values.resources | nindent 12 }}. Function names are case-sensitive, so toYAML doesn't exist.

Read more about Helm