Signed-off-by: Chris Berry <bez625@gmail.com>
pull/30570/head
Chris Berry 1 year ago committed by Scott Rigby
parent 20f859c9ff
commit 4cb639ed4e
No known key found for this signature in database
GPG Key ID: C7C6FBB5B91C1155

@ -52,7 +52,7 @@ func (cfg *Configuration) execHook(rl *release.Release, hook release.HookEvent,
for _, h := range executingHooks {
// Set default delete policy to before-hook-creation
if h.DeletePolicies == nil || len(h.DeletePolicies) == 0 {
if len(h.DeletePolicies) == 0 {
// TODO(jlegrone): Only apply before-hook-creation delete policy to run to completion
// resources. For all other resource types update in place if a
// resource with the same name already exists and is owned by the

@ -128,6 +128,7 @@ func SortManifests(files map[string]string, _ chartutil.VersionSet, ordering Kin
// metadata:
// annotations:
// helm.sh/hook-delete-policy: hook-succeeded
//
// To determine the policy to output logs of the hook (for Pod and Job only), it looks for a YAML structure like this:
//
// kind: Pod

Loading…
Cancel
Save