Commit 644ec0db authored by Yu-Ju Hong's avatar Yu-Ju Hong

Remove ErrNoKubeletContainers

We no longer use it.
parent 2f7b9511
...@@ -76,10 +76,6 @@ const ( ...@@ -76,10 +76,6 @@ const (
) )
var ( 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 // ErrContainerNotFound returned when a container in the given pod with the
// given container name was not found, amongst those managed by the kubelet. // given container name was not found, amongst those managed by the kubelet.
ErrContainerNotFound = errors.New("no matching container") ErrContainerNotFound = errors.New("no matching container")
......
...@@ -718,7 +718,7 @@ func (s *Server) serveStats(w http.ResponseWriter, req *http.Request) { ...@@ -718,7 +718,7 @@ func (s *Server) serveStats(w http.ResponseWriter, req *http.Request) {
switch err { switch err {
case nil: case nil:
break break
case ErrNoKubeletContainers, ErrContainerNotFound: case ErrContainerNotFound:
http.Error(w, err.Error(), http.StatusNotFound) http.Error(w, err.Error(), http.StatusNotFound)
return return
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment