MCPcopy
hub / github.com/kubernetes-sigs/kwok / InstallDebuggingDisabledHandlers

Method InstallDebuggingDisabledHandlers

pkg/kwok/server/debugging.go:26–33  ·  view source on GitHub ↗

InstallDebuggingDisabledHandlers registers the HTTP request patterns that provide better error message

()

Source from the content-addressed store, hash-verified

24
25// InstallDebuggingDisabledHandlers registers the HTTP request patterns that provide better error message
26func (s *Server) InstallDebuggingDisabledHandlers() {
27 paths := []string{
28 "/run/", "/exec/", "/attach/", "/portForward/", "/containerLogs/",
29 "/runningpods/", pprofBasePath, "/logs/"}
30 for _, p := range paths {
31 s.restfulCont.Handle(p, disableHandler)
32 }
33}
34
35// InstallDebuggingHandlers registers the HTTP request patterns that provide debugging functionality
36func (s *Server) InstallDebuggingHandlers() {

Callers 1

startServerFunction · 0.95

Calls 1

HandleMethod · 0.45

Tested by

no test coverage detected