Fix: Completely removed line in execHook (hooks.go). The hook could be pre-delete, pre-install, post-delete, post-install and should be treated at the caller's level and not at the hook's level.

Signed-off-by: Imri Barr <imribarr@Imris-MacBook-Pro.local>
pull/13098/head
Imri Barr 1 year ago
parent a978411d23
commit 6cb47c7f7c

@ -96,8 +96,6 @@ func (cfg *Configuration) execHook(rl *release.Release, hook release.HookEvent,
h.LastRun.Phase = release.HookPhaseSucceeded
}
cfg.recordRelease(rl)
// If all hooks are successful, check the annotation of each hook to determine whether the hook should be deleted
// under succeeded condition. If so, then clear the corresponding resource object in each hook
for _, h := range executingHooks {

Loading…
Cancel
Save