Helm
Medium
Templates
What template object provides access to files inside the chart package (like files in the 'files/' dir)?
Select your answer:
Show answer and explanation
Answer: .Files
Explanation
.Files gives templates access to the chart's other files, with methods such as .Files.Get, .Files.Glob and .Files.AsConfig. Files inside templates/ and files excluded by .helmignore aren't available through it.
More medium Helm questions
- Which function allows templates to fail with a custom error if a required value is missing?
- What is an OCI registry in the context of Helm?
- Which command logs you into an OCI registry for pushing/pulling charts?
- What is a library chart used for?
- Which field in Chart.yaml specifies the chart API version (e.g., v1) and affects Chart.lock format?
- What is the recommended way to store sensitive data for templates instead of hard-coding in values?