<p>We have several resources deployed as part of a helm (v3) chart. Some time ago, I made changes to resources deployed by that helm chart manually, via <code>kubectl</code>. This caused some drift between the values in the yaml resources deployed by the helm release (as show by <code>helm get values &lt;release&gt;</code>) and what is actually deployed in the cluster</p>
<p>Example: <code>kubectl describe deployment &lt;deployment&gt;</code> shows an updated image that was manually applied via a <code>kubectl re-apply</code>. Whereas <code>helm show values &lt;release&gt;</code> shows the original image used by helm for said deployment.</p>
<p>I realize that I should have performed a <code>helm upgrade</code> with a modified values.yaml file to execute the image change, but I am wondering if there is a way for me to sync the state of the values I manually updated with the values in the helm release. The goal is to create a new default <code>values.yaml</code> that reflect the current state of the cluster resources.</p>
<p>Thanks!</p>

Andy
<p>This is a community wiki answer posted for better visibility. Feel free to expand it.</p>
<p>According to the <a href="https://github.com/helm/helm/issues/2730" rel="nofollow noreferrer">Helm issue 2730</a> this feature will not be added in the Helm, as it is outside of the scope of the project.</p>
<p>It looks like there is no existing tool right from the Helm, that would help to port/adapt the life kubernetes resource back into existing or new helm charts/releases.</p>
<p>Based on this, you can use one of the following options:</p>
<ol>
<li>As suggested by @David Maze. The <a href="https://github.com/databus23/helm-diff" rel="nofollow noreferrer">Helm Diff Plugin</a> will show you the difference between the chart output and the cluster, but then you need to manually update values.yaml and templates.</li>
<li>The <a href="https://github.com/HamzaZo/helm-adopt" rel="nofollow noreferrer">helm-adopt plugin</a> is a helm plugin to adopt existing k8s resources into a new generated helm chart.</li>
</ol>
