Commit c08a29d7 authored by Matt Butcher's avatar Matt Butcher Committed by GitHub

Merge pull request #1114 from ammeon/fix-release-name-limit

fix(tiller): truncate release name returned from moniker
parents 56500729 4b718274
......@@ -333,8 +333,7 @@ func (s *releaseServer) uniqName(start string, reuse bool) (string, error) {
namer := moniker.New()
name := namer.NameSep("-")
if len(name) > releaseNameMaxLen {
log.Printf("info: Candidate name %q exceeds maximum length %d. Skipping.", name, releaseNameMaxLen)
continue
name = name[:releaseNameMaxLen]
}
if _, err := s.env.Releases.Get(name); err == driver.ErrReleaseNotFound {
return name, nil
......
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