title: How to create Kubernetes Namespace if it does not Exist?
body: <p>It's a simple question, but I could not find a definite answer for it. Is it possible to create a namespace only if it doesn't exist. My objective is to create some service accounts without caring if their namespaces exist or not (if not, then they should be created on the fly).<br />
  The thing is I'm using CDK to deploy some basics K8S resources (including service accounts). To safely do this, I need to make sure the namespace (given in the service account manifest) already exists. However I'm not able to find any solution.<br />
  I tried <code>patch</code>, but it seems to expect the resource to exist already (i.e. it fails with <code>NotFound</code> error).</p>
  <p>Two limitations:<br />
  a. I can't query to see if the namespace exists or not.<br />
  b. I can't use <code>apply</code> since I don't have the exact definition of the namespace.</p>
  <p>Is there any way to achieve this?</p>