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