mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Remove ErrNoKubeletContainers
We no longer use it.
This commit is contained in:
parent
2f7b951140
commit
644ec0dbfb
@ -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")
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user