We're starting to manage Kubernetes resources with Helm, and we have some users who are used to managing resources with
kubectl edit. We'd like Helm to sanitize the deployed resources every time it's run, bringing them back into a known-good state.
I've observed that
helm upgrade does not overwrite my ConfigMaps. Instead, it merges attributes between the deployed ConfigMap and the Helm template, giving me pieces of my templated ConfigMap and pieces of the hand-edited one. If there were no changes in the Helm ConfigMap template, Helm does not reset any part of my deployed ConfigMap back to a know-good state.
How can I instruct Helm to always reset my entire Kubernetes resource to the Helm-templated versions?