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
3265550a
Commit
3265550a
authored
Aug 25, 2016
by
Michelle Noorali
Committed by
GitHub
Aug 25, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1102 from michelleN/1101/purge
ref(kube): delete skips IsNotFound errs
parents
926d7931
50d8d36d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
client.go
pkg/kube/client.go
+7
-1
No files found.
pkg/kube/client.go
View file @
3265550a
...
...
@@ -221,10 +221,16 @@ func (c *Client) Delete(namespace string, reader io.Reader) error {
if
kubectl
.
IsNoSuchReaperError
(
err
)
{
return
resource
.
NewHelper
(
info
.
Client
,
info
.
Mapping
)
.
Delete
(
info
.
Namespace
,
info
.
Name
)
}
return
err
}
log
.
Printf
(
"Using reaper for deleting %s"
,
info
.
Name
)
return
reaper
.
Stop
(
info
.
Namespace
,
info
.
Name
,
0
,
nil
)
err
=
reaper
.
Stop
(
info
.
Namespace
,
info
.
Name
,
0
,
nil
)
if
err
!=
nil
&&
errors
.
IsNotFound
(
err
)
{
log
.
Printf
(
"%v"
,
err
)
return
nil
}
return
err
})
}
...
...
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