Merge pull request #1734 from kmala/release

fix(upgrade):Check the raw vals during an upgrade properly
pull/1746/head
Matt Butcher 8 years ago committed by GitHub
commit bea54d1073

@ -368,7 +368,7 @@ func (s *ReleaseServer) performUpdate(originalRelease, updatedRelease *release.R
//
// If the request already has values, or if there are no values in the current release, this does nothing.
func (s *ReleaseServer) reuseValues(req *services.UpdateReleaseRequest, current *release.Release) {
if (req.Values == nil || req.Values.Raw == "") && current.Config != nil && current.Config.Raw != "" {
if (req.Values == nil || req.Values.Raw == "" || req.Values.Raw == "{}\n") && current.Config != nil && current.Config.Raw != "" && current.Config.Raw != "{}\n" {
log.Printf("Copying values from %s (v%d) to new release.", current.Name, current.Version)
req.Values = current.Config
}

Loading…
Cancel
Save