add "/apis/" to kube-aggregator apisHandler

This makes the following two urls have the same result.
https://<ip>:443/apis
https://<ip>:443/apis/
pull/6/head
Cao Shufeng 2017-04-04 02:37:44 -04:00
parent ff40d8b408
commit ab70e5f58c
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ func (c completedConfig) NewWithDelegate(delegationTarget genericapiserver.Deleg
endpointsLister: s.endpointsLister, endpointsLister: s.endpointsLister,
} }
s.GenericAPIServer.HandlerContainer.Handle("/apis", apisHandler) s.GenericAPIServer.HandlerContainer.Handle("/apis", apisHandler)
s.GenericAPIServer.HandlerContainer.Handle("/apis/", apisHandler)
apiserviceRegistrationController := NewAPIServiceRegistrationController(informerFactory.Apiregistration().InternalVersion().APIServices(), kubeInformers.Core().V1().Services(), s) apiserviceRegistrationController := NewAPIServiceRegistrationController(informerFactory.Apiregistration().InternalVersion().APIServices(), kubeInformers.Core().V1().Services(), s)