<p>I have a <code>kind: Namespace</code> template YAML, as per below:</p>
<pre><code>apiVersion: v1
kind: Namespace
metadata:
  name: {{ .Values.namespace }}
  namespace: &quot;&quot;
</code></pre>
<p>How do I make <code>helm install</code> create the above-given namespace (<code>{{ .Values.namespace }}</code>) if and only if above namespace (<code>{{ .Values.namespace }}</code>) doesn't exits in the pointed Kubernetes cluster?</p>

Kasun Siyambalapitiya
<p>This feature is implemented in helm >= 3.2 (<a href="https://github.com/helm/helm/pull/7648" rel="noreferrer">Pull Request</a>)</p>

<p>Use <code>--create-namespace</code> in addition to <code>--namespace &lt;namespace&gt;</code></p>
