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
5d1eedd1
Commit
5d1eedd1
authored
Oct 17, 2016
by
Brian
Committed by
GitHub
Oct 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1380 from fibonacci1729/fix/1333
fix(1333): cannot delete release in failed state
parents
bb2511a4
264e30dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
release_server.go
cmd/tiller/release_server.go
+7
-1
No files found.
cmd/tiller/release_server.go
View file @
5d1eedd1
...
@@ -813,11 +813,17 @@ func (s *releaseServer) UninstallRelease(c ctx.Context, req *services.UninstallR
...
@@ -813,11 +813,17 @@ func (s *releaseServer) UninstallRelease(c ctx.Context, req *services.UninstallR
return
nil
,
errMissingRelease
return
nil
,
errMissingRelease
}
}
rel
,
err
:=
s
.
env
.
Releases
.
Deployed
(
req
.
Name
)
rel
s
,
err
:=
s
.
env
.
Releases
.
History
(
req
.
Name
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Printf
(
"uninstall: Release not loaded: %s"
,
req
.
Name
)
log
.
Printf
(
"uninstall: Release not loaded: %s"
,
req
.
Name
)
return
nil
,
err
return
nil
,
err
}
}
if
len
(
rels
)
<
1
{
return
nil
,
errMissingRelease
}
relutil
.
SortByRevision
(
rels
)
rel
:=
rels
[
len
(
rels
)
-
1
]
// TODO: Are there any cases where we want to force a delete even if it's
// TODO: Are there any cases where we want to force a delete even if it's
// already marked deleted?
// already marked deleted?
...
...
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