# With Kustomize v5.8, a kustomization sets namespace: shop and renders a chart whose Deployment template has no metadata.namespace. What namespace does the built Deployment get?

Kustomize, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/with-kustomize-v58-a-kustomization-sets-namespace-shop-and-renders-a-chart-whose-deployment-template-has-no-metadatanamespace-wh

- A. shop, set by the namespace transformer
- B. default, set by helm template
- C. None, metadata.namespace stays unset
- D. The namespace of the current kubectl context

**Answer:** None, metadata.namespace stays unset

**Explanation:** Since v5.8.0 Kustomize passes the namespace to Helm with --namespace but skips chart output in the namespace transformer. helm template doesn't add a namespace the template doesn't write, so the field stays empty. Charts that use .Release.Namespace in their templates get shop, and kubectl apply -n can fill the gap for the rest.
