helm-diff icon indicating copy to clipboard operation
helm-diff copied to clipboard

add env var HELM_DIFF_NORMALIZE_MANIFESTS=true for flag --normalize-m…

Open Anthon129 opened this issue 3 years ago • 2 comments

…anifests

Anthon129 avatar Jun 02 '22 15:06 Anthon129

Hi

I have a scenario using helmfile apply where the golang code behind the scenes runs helm diff upgrade followed by helm upgrade --install. I need to add the flag --normalize-manifests (to helm diff command) due to other reasons but this flag is unknown to helm upgrade (causing it to fail) and I am not able to apply separate individual flags to each of the commands. The flags applied to helm diff upgrade will be applied to helm upgrade.

Can we add an environment variable (i.e. HELM_DIFF_NORMALIZE_MANIFESTS=true) that would have the same effect as --normalize-manifests ?

Thanks

Anthon129 avatar Jun 02 '22 15:06 Anthon129

Hi @databus23 and @mumoshu.

Can we please merge this?

dudicoco avatar Jul 14 '22 07:07 dudicoco

👋 Hi @databus23 and @mumoshu,

Just checking in... this would greatly help clean up diffs we are generating through Helmfile.

drcrees avatar Sep 13 '22 20:09 drcrees

+1

frank-berlin avatar Sep 15 '22 14:09 frank-berlin

Thank you! 🙏

drcrees avatar Sep 22 '22 16:09 drcrees