Commit 0acbcdd5 authored by Matt Butcher's avatar Matt Butcher Committed by GitHub

Merge pull request #855 from technosophos/fix/851-create-release-fail

fix(tiller): save failed releases
parents a6f89d7a da14da36
......@@ -271,6 +271,9 @@ func (s *releaseServer) InstallRelease(c ctx.Context, req *services.InstallRelea
if err := s.env.KubeClient.Create(s.env.Namespace, b); err != nil {
r.Info.Status.Code = release.Status_FAILED
log.Printf("warning: Release %q failed: %s", name, err)
if err := s.env.Releases.Create(r); err != nil {
log.Printf("warning: Failed to record release %q: %s", name, err)
}
return res, fmt.Errorf("release %s failed: %s", name, err)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment