Helm
Hard
Templates
What does the 'lookup' function in templates do?
Select your answer:
Show answer and explanation
Answer: Query the Kubernetes API for live resources
Explanation
lookup reads live objects from the API server while the chart renders, for example an existing Secret, and returns an empty result when nothing matches. With helm template or a client-side dry run it always returns empty, so charts that use it need a fallback.
More hard Helm questions
- Which function trims trailing newlines from a string in templates?
- How can you override a nested map value via the command line?
- Which setting would you use to make a template helper available to child charts (subcharts)?
- Which Helm feature helps ensure chart values conform to a schema (like types and required fields)?
- Which Helm feature can help modify rendered manifests before they are applied to the cluster?
- Which command explains why a resource failed during a helm install by showing events/logs (combining kubectl)?