mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
fix staticcheck faulures in 'cmd' pkg
This commit is contained in:
@@ -597,6 +597,7 @@ func (s *ProxyServer) Run() error {
|
||||
w.Header().Set("X-Content-Type-Options", "nosniff")
|
||||
fmt.Fprintf(w, "%s", s.ProxyMode)
|
||||
})
|
||||
//lint:ignore SA1019 See the Metrics Stability Migration KEP
|
||||
proxyMux.Handle("/metrics", legacyregistry.Handler())
|
||||
if s.EnableProfiling {
|
||||
routes.Profiling{}.Install(proxyMux)
|
||||
|
||||
Reference in New Issue
Block a user