<p>I have a downloaded file through helm inspect called sftp.yaml</p>
<p>I have a parameter in that sftp.yaml file:-</p>
<pre><code>sftp:
    allowedMACs: &quot;hmac-sha2-512&quot;
    allowedCiphers: aes256-ctr
</code></pre>
<p>Now if i install the corresponding helm chart after commenting out the entire line of &quot;allowedMACs&quot; from custom values files i.e. &quot;sftp.yaml&quot;, then K8s takes the delta of sftp.yaml and the actual values.yaml and then use values.yaml's &quot;allowedMACs&quot;.</p>
<p>However What i want is if &quot;allowedMACs&quot; line is commented in &quot;sftp.yaml&quot; custom values file, then it should not set the env variable at all, or sets it as null.</p>
<p>presently my deployment file's env section looks like</p>
<pre><code>  - name: MACs
    value: {{ default &quot;&quot; .Values.sftp.allowedMACs | quote }}
</code></pre>

<p>You need to either override (with new value) or unset the value, if you only comment out the section you are not doing any of the above and the default value is going to be used.</p>
<p>Basically you are looking to unset a default value. As per <a href="https://banzaicloud.com/blog/creating-helm-charts-part-2/#removing-a-default-key" rel="noreferrer">banzaicloud example</a> this can be done like so:</p>
<pre><code>helm install stable/chart-name --set sftp.allowedMACs=null
</code></pre>
<p>You can also use override value file in a similar way:</p>
<pre><code>sftp:
    allowedMACs: null
    allowedCiphers: aes256-ctr
</code></pre>
<p>This is available in Helm since version 2.6. If you like in-depth information you can review the <a href="https://github.com/helm/helm/issues/1966" rel="noreferrer">issue</a> and the subsequent <a href="https://github.com/helm/helm/pull/2648/files" rel="noreferrer">PR</a> that introduced the feature.</p>
