<p>Is there a way to restrict helm to install or update if there are no new changes or modifications detected in your charts?</p>

Rishi
<p>One way of doing this - take helm template on old and new chart and do a diff. Then proceed with updates only if there are changes.</p>
<p>Essentially,</p>
<pre><code>values_diff=$(diff work-values/values.yaml work-values/values-prev.yaml | wc -l)
</code></pre>
<p>Where values.yaml and values-prev.yaml are outputs of helm template command on latest and previous charts.</p>
<p>Then you do</p>
<pre><code>if [ $values_diff -gt 0 ]
then
    ....
</code></pre>
<p>And your update logic goes where dots are.</p>
<p>See full working sample here (note it has few extra things that you may omit) - <a href="https://github.com/relizaio/reliza-hub-integrations/blob/master/Helm-cd-with-Reliza/helm_configmap.yaml" rel="nofollow noreferrer">https://github.com/relizaio/reliza-hub-integrations/blob/master/Helm-cd-with-Reliza/helm_configmap.yaml</a>, which is part of my bigger tutorial here - <a href="https://worklifenotes.com/2021/05/22/helm-cd-with-reliza-hub-tutorial/" rel="nofollow noreferrer">https://worklifenotes.com/2021/05/22/helm-cd-with-reliza-hub-tutorial/</a></p>
