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

Signed-off-by: Silvio Moioli <silvio@moioli.net>
pull/6753/head
Silvio Moioli 2 years ago committed by GitHub
parent a4549cf989
commit 23c1040adb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save