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

Helm, Hard (Expert), Templates. https://k8wiz.com/uquiz/a-template-reads-an-existing-secret-with-the-lookup-function-what-does-lookup-return-when-you-run-helm-template-with-its-default

- A. The Secret, read using your kubeconfig context
- B. An empty map, as no cluster is contacted
- C. An error saying lookup needs a cluster
- D. A nil value, so any field access fails

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