title: kustomize: how to pass `newTag` from command line
body: <p>I am using <a href="https://kustomize.io/" rel="nofollow noreferrer">https://kustomize.io/</a> have below is my <code>kustomization.yaml</code> file,</p>
  <p>I have multiple docker images and during deployment all having same <code>tag</code>. I can manually change all the <code>tag</code> value and I can run it <code>kubectl apply -k .</code> through command prompt.</p>
  <p>Question is, I don't want to change this file manually, I want to send <code>tag</code> value as a command line argument within <code>kubectl apply -k .</code> command. Is there way to do that? Thanks.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>apiVersion: kustomize.config.k8s.io/v1beta1
  kind: Kustomization
  resources:
  - ../../base
  images:
  - name: foo/bar
    newTag: "36"
  - name: zoo/too
    newTag: "36"</code></pre>
  </div>
  </div>
  </p>