Commit 0e79b7c9 authored by Nail Islamov's avatar Nail Islamov

Fix potential SEGV with null delegate handler

parent 6c50ffcf
......@@ -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,
)
......
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