Correctly persists Release upgrade failure

When release upgrade fails, updatedRelease is already created
in a storage by *ReleaseServer.UpdateRelease, therefore we should
be updating it's status, not creating it again.

(cherry picked from commit 38c3f58dca)
release-2.6
Maxim Ivanov 7 years ago committed by Matthew Fisher
parent 821100eba9
commit 9b900ad823

@ -155,7 +155,7 @@ func (s *ReleaseServer) performUpdate(originalRelease, updatedRelease *release.R
updatedRelease.Info.Status.Code = release.Status_FAILED
updatedRelease.Info.Description = msg
s.recordRelease(originalRelease, true)
s.recordRelease(updatedRelease, false)
s.recordRelease(updatedRelease, true)
return res, err
}

Loading…
Cancel
Save