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.
More medium Helm questions
- What does the 'helm registry login' authenticate against when using OCI registries?
- How do library charts differ from regular charts in Chart.yaml?
- How can you pass a file's contents into a value using the CLI?
- What is semantic versioning used for in Chart.yaml 'version' field?
- What does 'helm upgrade --reuse-values' do?
- Which change in Helm v4 may require updates to automation regarding CLI flags?