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.
More hard Helm questions
- What is the purpose of the 'helm verify' command?
- What is the purpose of the 'helm get hooks' command?
- Which Helm capability provides cluster information like API versions available?
- Which annotation is commonly used to mark a resource as a Helm hook?
- Which manifest hook weight determines order when multiple hooks of the same type run?
- Which command can render templates but also show Kubernetes object diffs against the cluster when combined with other tools?