Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
644ec0db
Commit
644ec0db
authored
Apr 30, 2015
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ErrNoKubeletContainers
We no longer use it.
parent
2f7b9511
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
kubelet.go
pkg/kubelet/kubelet.go
+0
-4
server.go
pkg/kubelet/server.go
+1
-1
No files found.
pkg/kubelet/kubelet.go
View file @
644ec0db
...
...
@@ -76,10 +76,6 @@ const (
)
var
(
// ErrNoKubeletContainers returned when there are not containers managed by
// the kubelet (ie: either no containers on the node, or none that the kubelet cares about).
ErrNoKubeletContainers
=
errors
.
New
(
"no containers managed by kubelet"
)
// ErrContainerNotFound returned when a container in the given pod with the
// given container name was not found, amongst those managed by the kubelet.
ErrContainerNotFound
=
errors
.
New
(
"no matching container"
)
...
...
pkg/kubelet/server.go
View file @
644ec0db
...
...
@@ -718,7 +718,7 @@ func (s *Server) serveStats(w http.ResponseWriter, req *http.Request) {
switch
err
{
case
nil
:
break
case
Err
NoKubeletContainers
,
Err
ContainerNotFound
:
case
ErrContainerNotFound
:
http
.
Error
(
w
,
err
.
Error
(),
http
.
StatusNotFound
)
return
default
:
...
...
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