k8wiz
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.

Read more about Helm