<p>I was trying to override the image tag in Helm3 using upgrade command by setting the variable at command line but it did not work. Has someone tried this feature in Helm3. 
Stuck for last couple of days, would be helpful to know your views.</p>

<p>Deployment manifest file looks like this:-</p>

<blockquote>
<pre><code>    containers:
   - image: {{ .Values.image.repository }}:{{.Values.image.tag}}
     imagePullPolicy: Always
</code></pre>
</blockquote>

<p>Executing this command from command line:-  </p>

<pre><code>&gt; helm upgrade resources-dev resources --set image.tag=72615 --dry-run --debug
</code></pre>

<p>does not override image tag value from 72626 to 72615</p>

<pre><code> containers:
  - image: aksresourcesapi.azurecr.io/microservicesinitiative:72626
    imagePullPolicy: Always
</code></pre>

<p>Deployment file
<a href="https://i.stack.imgur.com/kr8tB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kr8tB.png" alt="enter image description here"></a></p>

<p>Command Results:-
helm upgrade resources-dev resources --set image.tag=72615 --reuse-values
<a href="https://i.stack.imgur.com/o4sAf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o4sAf.png" alt="enter image description here"></a>
Command Results of 
helm upgrade resources-dev resources --set-string image.tag=72615 
<a href="https://i.stack.imgur.com/5KALa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5KALa.png" alt="enter image description here"></a></p>

<p>You should specify to helm that it is a string value. It is done with <code>--set-string</code> flag.</p>

<p>Also use <code>--reuse-values</code> in order to reuse the last release’s values and merge in any overrides from the command line via — set and -f</p>

<p>Executing the following command will solve the problem:</p>

<pre><code>helm upgrade resources-dev resources --reuse-values --set-string image.tag=72615 --dry-run --debug
</code></pre>
