mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #45804 from nilebox/nilebox/apiextensions-delegate-handler
Automatic merge from submit-queue kube-apiextensions-server: Fix potential SEGV with null delegate handler **What this PR does / why we need it**: In the kube-apiextensions-server there is a fallback value for `null` delegate to `http.NotFoundHandler()` in handling group and versions discovery, but no fallback for custom resources endpoint. It leads to SEGV when running with `genericapiserver.EmptyDelegate`.
This commit is contained in:
commit
5a1ec9bf6f
@ -145,7 +145,7 @@ func (c completedConfig) New(delegationTarget genericapiserver.DelegationTarget)
|
||||
groupDiscoveryHandler,
|
||||
s.GenericAPIServer.RequestContextMapper(),
|
||||
customResourceInformers.Apiextensions().InternalVersion().CustomResources().Lister(),
|
||||
delegationTarget.UnprotectedHandler(),
|
||||
delegateHandler,
|
||||
c.CustomResourceRESTOptionsGetter,
|
||||
c.GenericConfig.AdmissionControl,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user