UPSTREAM: <drop>: disable openapi aggregation
@@ -251,6 +251,7 @@ func (c completedConfig) NewWithDelegate(delegationTarget genericapiserver.Deleg
return nil
})
+ if false {
s.GenericAPIServer.PrepareOpenAPIService()
if s.GenericAPIServer.OpenAPIService != nil {
@@ -264,6 +265,7 @@ func (c completedConfig) NewWithDelegate(delegationTarget genericapiserver.Deleg
}
})
}
+ }
return s, nil
}
@@ -353,7 +355,9 @@ func (s *APIAggregator) RemoveAPIService(apiServiceName string) {
s.GenericAPIServer.Handler.NonGoRestfulMux.Unregister(proxyPath + "/")
delete(s.proxyHandlers, apiServiceName)
s.deleteApiSpec(apiServiceName)
+ if false {
s.updateOpenAPISpec()
+ }
// TODO unregister group level discovery when there are no more versions for the group
// We don't need this right away because the handler properly delegates when no versions are present
