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
Hook delete policy not honored for preceding resource on a failure #3714
I have two jobs configured in pre-upgrade hook which both have hook-succeeded,hook-failed as the delete policy.
If both jobs succeed they are properly deleted. But if the second job is failing (and obviously the first has succeeded), the first job is not deleted.
Documentation about hooks being not very precise, I don't know is this should be the expected behavior, but this is not what I would expect intuitively.
Here a simple template that can be used to easily reproduce it with the latest version (2.8.2):
@DoctorZK sorry for bothering. Any chance of getting some eyes on this? Is that make sense to delete previous succeeded hooks with hook-delete-policy: hook-succeeded annotation before delete the failed hook and return err?
Activity
lentil1016 commentedon Mar 22, 2018
https://github.com/kubernetes/helm/blob/48e703997016f3edeb4f0b90e6cfdb3456ce3db0/pkg/tiller/release_server.go#L359-L373
If any hook failed, tiller will delete this single hook then return at L372. Which makes other hooks' delete policy trivial.
lentil1016 commentedon Mar 22, 2018
@DoctorZK sorry for bothering. Any chance of getting some eyes on this? Is that make sense to delete previous succeeded hooks with
hook-delete-policy: hook-succeededannotation before delete the failed hook and return err?consideRatio commentedon Apr 19, 2018
/kind bug
bounddog commentedon Jun 29, 2018
I hit this issue with v2.7.2
bacongobbler commentedon Dec 9, 2019
Closing due to inactivity. Please open a new ticket against Helm 3 if this issue persists. Thanks!