nikhilsbhat / helm-drift

Helm plugin that identifies the configuration that has drifted from the Helm chart
https://artifacthub.io/packages/helm-plugin/helm-drift/drift
MIT License
68 stars 10 forks source link

new feat: exclude normal helm diff out when helm drift run RELEASE -f <valuesXXX.yaml> <local_chart_path> #24

Open dayFlame opened 4 months ago

dayFlame commented 4 months ago

My situation is that, in cluster deployed release with CHART version 1.0 and image tag 1_1, then manual edit one workload. Now going to install CHART version 1.1 and image tag 1_2.

I use helm drift run RELEASE -f in my local, but drift found manual edit and image tag diff 1_1 -> 1_2. How to exclude image tag diff out in drift result because it's expected.

Actually, I want to merge the feature of helm drift run RELEASE from local chart and from release. The expected diff should be filtered out. If local chart value is same as manual update, it's also supposed to be filtered out.

nikhilsbhat commented 1 month ago

@dayFlame, the plugin is just the wrapper around kubectl diff. So, for drift identification the comparison happens between local-chart > remote-state or helm-state > remote-state. The diff you mentioned is expected.