Merge pull request #6191 from bacongobbler/fix-6182

fix(action): return nil if no errors occurred
pull/6193/head
Matthew Fisher 5 years ago committed by GitHub
commit bb042bf2fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -262,7 +262,9 @@ func deleteHookByPolicy(client kube.Interface, h *release.Hook, policy string) e
return errors.Wrapf(err, "unable to build kubernetes object for deleting hook %s", h.Path)
}
_, errs := client.Delete(resources)
return errors.New(joinErrors(errs))
if len(errs) > 0 {
return errors.New(joinErrors(errs))
}
}
return nil
}

Loading…
Cancel
Save