-
Notifications
You must be signed in to change notification settings - Fork 563
presync hook not running with apply #1940
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
Comments
@mumoshu is this a bug or the expected behaviour? |
@Sajfer It should work for Line 1376 in b1928e5
presync hooks Line 812 in d4a7b3b
|
@mumoshu I'm not sure @Sajfer has the same issue as I'm facing but I'm currently not able to use apply (even though I really would like to!) as the recommended operation because in case there is no diff to the release then the hook will not execute. I.e. any potential behavior changes induced by the hook may go missing during an upgrade. |
@gakesson In terms of Helmfile, |
@mumoshu I don't object to the current behavior of presync hook only running when sync is in fact triggered on the release. It seems like a well-defined behavior, but it also means hooks become somewhat non-deterministic when using apply because the hook is entirely dependent on diffs in the release. |
@gakesson Thanks for the feedback. |
That is fine for me. |
Just to clarify, what we want is a |
@Sajfer Exactly! |
I created a pullrequest against |
Hi.
I am trying to use the presync hook, but it does not seem to run when using helmfile apply, and only with helmfile sync.
In the documentation it seems like it should run on both apply and sync.
"Hooks associated to presync events are triggered before each release is applied to the remote cluster. This is the ideal event to execute any commands that may mutate the cluster state as it will not be run for read-only operations like lint, diff or template."
Is this the expected behavior?
The text was updated successfully, but these errors were encountered: