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
{{ message }}
Repository navigation
Helm hooks not being processed in correct order #2995
I'm having issues ordering the creation of the following resource in this PR - helm/charts#2369.
I have a bunch of CRD pre-install resources with a weight of 1 and a bunch of custom resources with a hook weight of 2. I expect the resource with a weight of 1 to be installed first. Instead I see the behaviour works some of the time and other times results in
$ helm install --name istio . --namespace istio-system
Error: apiVersion "config.istio.io/v1alpha2" in istio/templates/custom-resources.yaml is not available
[tiller] 2017/10/02 07:47:40 preparing install for istio
[storage] 2017/10/02 07:47:40 getting release history for "istio"
[tiller] 2017/10/02 07:47:40 rendering istio chart using values
[tiller] 2017/10/02 07:47:40 failed install prepare step: apiVersion "config.istio.io/v1alpha2" in istio/templates/custom-resources.yaml is not available
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale
Activity
[-]Helm hooks not being processed [/-][+]Helm hooks not being processed in correct order[/+]lachie83 commentedon Oct 2, 2017
Seeing the following in tiller logs
bacongobbler commentedon Oct 2, 2017
The proper annotation is actually
helm.sh/hookWeight, nothelm.sh/hook-weight. Your hooks don't have a weight assigned to them :)Perhaps this is something we should capture in
helm lintas I've seen this occur more than once.bacongobbler commentedon Oct 2, 2017
05d0fcb
lachie83 commentedon Oct 2, 2017
Let's update the docs too -- https://github.com/kubernetes/helm/blob/master/docs/charts_hooks.md
unguiculus commentedon Oct 2, 2017
helm.sh/hook-weightis correct. The mentioned commit above is the original one in the PR. It was changed by my review.#2157 (comment)
https://github.com/kubernetes/helm/blob/master/pkg/hooks/hooks.go#L27
bacongobbler commentedon Oct 2, 2017
Huh, so it did. My bad. b9ef8db#diff-4ce0c4408808dad0b46844b92388f205
fejta-bot commentedon Jan 6, 2018
Issues go stale after 90d of inactivity.
Mark the issue as fresh with
/remove-lifecycle stale.Stale issues rot after an additional 30d of inactivity and eventually close.
Prevent issues from auto-closing with an
/lifecycle frozencomment.If this issue is safe to close now please do so with
/close.Send feedback to sig-testing, kubernetes/test-infra and/or
@fejta./lifecycle stale
fejta-bot commentedon Feb 10, 2018
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with
/remove-lifecycle rotten.Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with
/close.Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale
fejta-bot commentedon Mar 12, 2018
Rotten issues close after 30d of inactivity.
Reopen the issue with
/reopen.Mark the issue as fresh with
/remove-lifecycle rotten.Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close