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
573a8a19
Unverified
Commit
573a8a19
authored
Apr 12, 2017
by
Matt Butcher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tiller): ignore empty YAML documents during delete
Closes #2256
parent
bc8b3bb1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
release_server.go
pkg/tiller/release_server.go
+4
-1
No files found.
pkg/tiller/release_server.go
View file @
573a8a19
...
@@ -1058,7 +1058,10 @@ func (s *ReleaseServer) UninstallRelease(c ctx.Context, req *services.UninstallR
...
@@ -1058,7 +1058,10 @@ func (s *ReleaseServer) UninstallRelease(c ctx.Context, req *services.UninstallR
// Collect the errors, and return them later.
// Collect the errors, and return them later.
es
:=
[]
string
{}
es
:=
[]
string
{}
for
_
,
file
:=
range
filesToDelete
{
for
_
,
file
:=
range
filesToDelete
{
b
:=
bytes
.
NewBufferString
(
file
.
content
)
b
:=
bytes
.
NewBufferString
(
strings
.
TrimSpace
(
file
.
content
))
if
b
.
Len
()
==
0
{
continue
}
if
err
:=
s
.
env
.
KubeClient
.
Delete
(
rel
.
Namespace
,
b
);
err
!=
nil
{
if
err
:=
s
.
env
.
KubeClient
.
Delete
(
rel
.
Namespace
,
b
);
err
!=
nil
{
log
.
Printf
(
"uninstall: Failed deletion of %q: %s"
,
req
.
Name
,
err
)
log
.
Printf
(
"uninstall: Failed deletion of %q: %s"
,
req
.
Name
,
err
)
if
err
==
kube
.
ErrNoObjectsVisited
{
if
err
==
kube
.
ErrNoObjectsVisited
{
...
...
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