UPSTREAM: revert: <drop>: disable openapi aggregation"
This reverts commit
@@ -250,7 +250,6 @@ func (c completedConfig) NewWithDelegate(delegationTarget genericapiserver.Deleg
return nil
})
- if false {
s.GenericAPIServer.PrepareOpenAPIService()
if s.GenericAPIServer.OpenAPIService != nil {
@@ -264,7 +263,6 @@ func (c completedConfig) NewWithDelegate(delegationTarget genericapiserver.Deleg
}
})
}
- }
return s, nil
}
@@ -354,9 +352,7 @@ 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
