Remove ErrNoKubeletContainers

We no longer use it.
This commit is contained in:
Yu-Ju Hong 2015-04-30 13:35:21 -07:00
parent 2f7b951140
commit 644ec0dbfb
2 changed files with 1 additions and 5 deletions

View File

@ -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")

View File

@ -718,7 +718,7 @@ func (s *Server) serveStats(w http.ResponseWriter, req *http.Request) {
switch err {
case nil:
break
case ErrNoKubeletContainers, ErrContainerNotFound:
case ErrContainerNotFound:
http.Error(w, err.Error(), http.StatusNotFound)
return
default: