title: Helm release to be in custom namespace and not in default
body: <p>Is there a way I can specify the helm release to be deployed on a custom namespace.
  All the helm resources are deployed on a custom namespace that I created by mentioning</p>
  <pre><code>namespace: {{ template &quot;plugin.namespace&quot; . }}
  </code></pre>
  <p>and this is taken from _helper.tpl</p>
  <p>But the release by itself is in default namespace</p>
  <pre><code>helm ls
  NAME                        NAMESPACE   REVISION    UPDATED                                 STATUS      CHART                           APP VERSION
  object-storage-plugin   default     3           2021-08-04 15:42:30.833512 +0530 IST    deployed    object-storage-plugin-2.1.2 2.1.2      
  
  </code></pre>
  <p>I know via command line we can set the namespace but I am looking for options from a template file where the namespace would be picked</p>
  <p>I referred <a href="https://helm.sh/docs/chart_template_guide/getting_started/" rel="nofollow noreferrer">https://helm.sh/docs/chart_template_guide/getting_started/</a></p>
  <p>With helm3 <code>--create-namespace</code> creates new namespace but helm uninstall command doesnt delete this newly created NS.</p>