title: Tie skaffold profile to namespace
body: <p>Is there a way to tie a skaffold profile to a namespace? I'd like to make sure that dev, staging and prod deployments always go to the right namespace. I know that I can add a namespace to <code>skaffold run</code> like <code>skaffold run -p dev -n dev</code> but that's a little error prone. I'd like to make my builds even safer by tying profiles to namespaces. </p>
  
  <p>I've tried adding the following to my <code>skaffold.yaml</code> based on the fact that there's a path in <code>skaffold.yaml</code> which is <a href="https://skaffold.dev/docs/references/yaml/" rel="nofollow noreferrer"><code>build/cluster/namespace</code></a> but I suspect I'm misunderstanding the purpose of the cluster spec.</p>
  
  <pre><code>profiles:
  - name: local
    patches:
    - op: replace
      path: /build/artifacts/0/cluster/namespace
      value: testing
  </code></pre>
  
  <p>but I get the error </p>
  
  <pre><code> ❮❮❮ skaffold render -p local
  FATA[0000] creating runner: applying profiles: applying profile local: invalid path: /build/artifacts/0/cluster/namespace
  </code></pre>
  
  <p>I've tried other variants of changing the cluster namespace but all of them fail.</p>