Commit ab70e5f5 authored by Cao Shufeng's avatar Cao Shufeng

add "/apis/" to kube-aggregator apisHandler

This makes the following two urls have the same result. https://<ip>:443/apis https://<ip>:443/apis/
parent ff40d8b4
......@@ -178,6 +178,7 @@ func (c completedConfig) NewWithDelegate(delegationTarget genericapiserver.Deleg
endpointsLister: s.endpointsLister,
}
s.GenericAPIServer.HandlerContainer.Handle("/apis", apisHandler)
s.GenericAPIServer.HandlerContainer.Handle("/apis/", apisHandler)
apiserviceRegistrationController := NewAPIServiceRegistrationController(informerFactory.Apiregistration().InternalVersion().APIServices(), kubeInformers.Core().V1().Services(), s)
......
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