Merge pull request #126565 from Adarsh-verma-14/remove-duplicate-call

remove duplicate call for ServeMux
This commit is contained in:
Kubernetes Prow Robot
2024-08-13 22:11:34 -07:00
committed by GitHub

View File

@@ -77,7 +77,6 @@ func NewAPIServerHandler(name string, s runtime.NegotiatedSerializer, handlerCha
}
gorestfulContainer := restful.NewContainer()
gorestfulContainer.ServeMux = http.NewServeMux()
gorestfulContainer.Router(restful.CurlyRouter{}) // e.g. for proxy/{kind}/{name}/{*}
gorestfulContainer.RecoverHandler(func(panicReason interface{}, httpWriter http.ResponseWriter) {
logStackOnRecover(s, panicReason, httpWriter)