mirror of https://github.com/k3s-io/k3s
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
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