UPSTREAM: <carry>: aggregator to proxy oapi to apps.openshift.io server
@@ -284,6 +284,12 @@ func (s *APIAggregator) AddAPIService(apiService *apiregistration.APIService) er
s.GenericAPIServer.Handler.NonGoRestfulMux.Handle(proxyPath, proxyHandler)
s.GenericAPIServer.Handler.NonGoRestfulMux.UnlistedHandlePrefix(proxyPath+"/", proxyHandler)
+ // this exists to proxy /oapi
+ if apiService.Spec.Group == "apps.openshift.io" {
+ s.GenericAPIServer.Handler.NonGoRestfulMux.Handle("/oapi", proxyHandler)
+ s.GenericAPIServer.Handler.NonGoRestfulMux.UnlistedHandlePrefix("/oapi/", proxyHandler)
+ }
+
// if we're dealing with the legacy group, we're done here
if apiService.Name == legacyAPIServiceName {
return nil
