Is your feature request related to a problem? Please describe.
We utilize the helm templating engine to generate our manifests which we then check in and apply via kubectl at a later time. Right now, this chart doesn't inject the helm release namespace into the resources' metadata. It instead relies on the underlying kubectl client having a namespace flag specified.
Describe the solution you'd like
A common pattern is to include this in the templates
metadata:
namespace: {{ .Release.Namespace }}
This lets you still use the existing way of applying via helm or kubectl and passing the namespace flag, but also allows generating templates with the namespace dictated in the yaml.
Describe alternatives you've considered
We could work around this issue by writing code so our deployment pipeline can take the namespace and apply it with kubectl. Other charts we use specify this namespace, so it would be nice if they were consistent.
Additional context
There was a long conversation about this here. It was ultimately closed as they won't dictate one way or the other. There are lots of issues that link to it though where others have added in this config.
Let me know your thoughts on this particular matter. If you approve, we can do the PR. Thanks for your consideration!