mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
add "/apis/" to kube-aggregator apisHandler
This makes the following two urls have the same result. https://<ip>:443/apis https://<ip>:443/apis/
This commit is contained in:
parent
ff40d8b408
commit
ab70e5f58c
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user