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

Signed-off-by: Silvio Moioli <silvio@moioli.net>
This commit is contained in:
Silvio Moioli
2023-01-14 01:09:14 +01:00
committed by GitHub
parent a4549cf989
commit 23c1040adb

View File

@@ -97,7 +97,7 @@ func (c *Cluster) initClusterAndHTTPS(ctx context.Context) error {
}
if c.config.EnablePProf {
mux := mux.NewRouter()
mux := mux.NewRouter().SkipClean(true)
mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)