Signed-off-by: Chris Berry <bez625@gmail.com>
pull/10309/head
Chris Berry 1 year ago
parent 3964f84ac8
commit a55a477069

@ -51,7 +51,7 @@ func (cfg *Configuration) execHook(rl *release.Release, hook release.HookEvent,
for _, h := range executingHooks { for _, h := range executingHooks {
// Set default delete policy to before-hook-creation // 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 // TODO(jlegrone): Only apply before-hook-creation delete policy to run to completion
// resources. For all other resource types update in place if a // resources. For all other resource types update in place if a
// resource with the same name already exists and is owned by the // 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: // metadata:
// annotations: // annotations:
// helm.sh/hook-delete-policy: hook-succeeded // 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: // 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 // kind: Pod

Loading…
Cancel
Save