k8wiz
Helm
Hard
Templates

A template reads an existing Secret with the lookup function. What does lookup return when you run helm template with its default flags?

Select your answer:

Show answer and explanation

Answer: An empty map, as no cluster is contacted

Explanation

helm template defaults to --dry-run=client, which never connects to the cluster, and in that mode lookup is a placeholder that returns an empty map. Templates that branch on lookup therefore take the not found path locally. Pass --dry-run=server to run lookup against the real cluster.

Read more about Helm