You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two pre-upgrade hooks that I need to fire in a very particular order. As it is currently implemented the ordering is not guaranteed and my upgrade procedure may not complete.
Proposal
Add a weight to all hooks (supplied as an integer).
Tiller will pre-sort all hooks by weight in ascending order
Execute all hooks with the same weight simultaneously
This will allow users to supply their weights as a variable in the values.yaml file which can be overridden if a conflict arises. This also satisfies the need of allowing a specific execution order of hooks for complicated installation/upgrade processes.
I have two pre-upgrade hooks that I need to fire in a very particular order. As it is currently implemented the ordering is not guaranteed and my upgrade procedure may not complete.
I'd like to ask how to determine the previous hook is completed, then start the second hook. If the previous hook is a pod, does the complete mean the pod is in ready status or just being loaded into kubernetes(maybe in pending).
Activity
jchauncey commentedon Mar 21, 2017
So I have an implementation of this done.
helm.sh/hookWeightfeat(hooks): Adds weighted hooks
feat(hooks): Adds weighted hooks
feat(hooks): Adds weighted hooks
cheyang commentedon Apr 9, 2018
I'd like to ask how to determine
the previous hookis completed, then start the second hook. If the previous hook is a pod, does the complete mean the pod is inreadystatus or just being loaded into kubernetes(maybe in pending).