diff --git a/pkg/kubelet/server.go b/pkg/kubelet/server.go index 371b208d9320c..57d25a9729c8e 100644 --- a/pkg/kubelet/server.go +++ b/pkg/kubelet/server.go @@ -653,7 +653,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) { // serveStats implements stats logic. func (s *Server) serveStats(w http.ResponseWriter, req *http.Request) { - // /stats// or /stats//// + // /stats// or /stats//// components := strings.Split(strings.TrimPrefix(path.Clean(req.URL.Path), "/"), "/") var stats *cadvisorApi.ContainerInfo var err error