Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
c08a29d7
Commit
c08a29d7
authored
Aug 26, 2016
by
Matt Butcher
Committed by
GitHub
Aug 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1114 from ammeon/fix-release-name-limit
fix(tiller): truncate release name returned from moniker
parents
56500729
4b718274
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
release_server.go
cmd/tiller/release_server.go
+1
-2
No files found.
cmd/tiller/release_server.go
View file @
c08a29d7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment