Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for --no-hooks option on diff #1115

Open
mcavoyk opened this issue Feb 21, 2020 · 7 comments
Open

Add support for --no-hooks option on diff #1115

mcavoyk opened this issue Feb 21, 2020 · 7 comments

Comments

@mcavoyk
Copy link

mcavoyk commented Feb 21, 2020

The Helm diff plugin has a --no-hooks option which suppresses diff of Helm hooks when used. This option would be nice at either the release level or cli helmfile diff level.

Unintended behavior of this not being supported is that helm charts which use Helm hooks end up with misleading diffs and also upgrade being run on apply when no resources have changed.

@mumoshu
Copy link
Collaborator

mumoshu commented Feb 25, 2020

@mcavoyk Thanks for the proposal - that makes sense!

Out of curiosity, what would be the "best" behavior regarding this?

Is diff on hooks still useful when you do have an update on your chart? In that case, we can perhaps collaborate with helm-diff to add an alternative mode that prints diff on hooks only when a release has diff for non-hook resources.

@mcavoyk
Copy link
Author

mcavoyk commented Feb 28, 2020

The best behavior would be that helm diff understand the lifecycle of the specified hooks and only diff when the hook would actually be applied.

I think the next best would be to control --no-hook behavior within helmfile so that the diff of hook resources are ignored.

@bobmacks
Copy link

bobmacks commented Apr 7, 2022

Any updates on this request? We also require the ability to ignore post-install hooks from helmfile diffs.

@mumoshu
Copy link
Collaborator

mumoshu commented Apr 8, 2022

@bobmacks Hey! Thanks for your attention. I'd say it's generally not a good idea to just ask for updates in a volunteer-driven open-source project, as no one is forced to spend time on it.
This seems like a valid feature though! I'd definitely try to review any pull requests related to this.
Would you mind contributing it?

@arpanadhikari
Copy link

@mumoshu , I've put my hand up for this. Will give it a shot. Looks straight forward enough. :)

@yxxhero
Copy link
Contributor

yxxhero commented Jun 15, 2022

@arpanadhikari https://github.com/helmfile/helmfile. Welcome to create PRs in this repo. see: #2148

@arpanadhikari
Copy link

Amazing. Finally moved to its well deserved separate org. Thanks @yxxhero .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants