Commit 8e36b165 authored by Silvio Moioli's avatar Silvio Moioli Committed by Brad Davidson

Bugfix: do not break cert-manager when pprof is enabled (#6635)

Signed-off-by: 's avatarSilvio Moioli <silvio@moioli.net> (cherry picked from commit 23c1040a) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent be26a6e6
...@@ -97,7 +97,7 @@ func (c *Cluster) initClusterAndHTTPS(ctx context.Context) error { ...@@ -97,7 +97,7 @@ func (c *Cluster) initClusterAndHTTPS(ctx context.Context) error {
} }
if c.config.EnablePProf { if c.config.EnablePProf {
mux := mux.NewRouter() mux := mux.NewRouter().SkipClean(true)
mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
mux.HandleFunc("/debug/pprof/profile", pprof.Profile) mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol) mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment