k8wiz
Kustomize
Medium
Troubleshooting

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?

Select your answer:

Show answer and explanation

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.

Read more about Kustomize