diff --git a/kubernetes-model-generator/openapi/generator/main.go b/kubernetes-model-generator/openapi/generator/main.go index 581c71ca541..02a8ad922f9 100644 --- a/kubernetes-model-generator/openapi/generator/main.go +++ b/kubernetes-model-generator/openapi/generator/main.go @@ -97,18 +97,20 @@ func main() { reflect.TypeOf(apiextensionsV1Beta1.ValidationRule{}), }, "apiextensions"), NewPathSchema(map[reflect.Type]string{ - reflect.TypeOf(gatewayApiV1.GatewayList{}): "/apis/" + gatewayApiV1.GroupName + "/v1/namespaces/{namespace}/gateways", - reflect.TypeOf(gatewayApiV1.Gateway{}): "/apis/" + gatewayApiV1.GroupName + "/v1/namespaces/{namespace}/gateways/{name}", - reflect.TypeOf(gatewayApiV1.GatewayClassList{}): "/apis/" + gatewayApiV1.GroupName + "/v1/gatewayclasses", - reflect.TypeOf(gatewayApiV1.GatewayClass{}): "/apis/" + gatewayApiV1.GroupName + "/v1/gatewayclasses/{name}", - reflect.TypeOf(gatewayApiV1.HTTPRouteList{}): "/apis/" + gatewayApiV1.GroupName + "/v1/namespaces/{namespace}/httproutes", - reflect.TypeOf(gatewayApiV1.HTTPRoute{}): "/apis/" + gatewayApiV1.GroupName + "/v1/namespaces/{namespace}/httproutes/{name}", - reflect.TypeOf(gatewayApiV1Beta1.GatewayList{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/namespaces/{namespace}/gateways", - reflect.TypeOf(gatewayApiV1Beta1.Gateway{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/namespaces/{namespace}/gateways/{name}", - reflect.TypeOf(gatewayApiV1Beta1.GatewayClassList{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/gatewayclasses", - reflect.TypeOf(gatewayApiV1Beta1.GatewayClass{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/gatewayclasses/{name}", - reflect.TypeOf(gatewayApiV1Beta1.HTTPRouteList{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/namespaces/{namespace}/httproutes", - reflect.TypeOf(gatewayApiV1Beta1.HTTPRoute{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/namespaces/{namespace}/httproutes/{name}", + reflect.TypeOf(gatewayApiV1.GatewayList{}): "/apis/" + gatewayApiV1.GroupName + "/v1/namespaces/{namespace}/gateways", + reflect.TypeOf(gatewayApiV1.Gateway{}): "/apis/" + gatewayApiV1.GroupName + "/v1/namespaces/{namespace}/gateways/{name}", + reflect.TypeOf(gatewayApiV1.GatewayClassList{}): "/apis/" + gatewayApiV1.GroupName + "/v1/gatewayclasses", + reflect.TypeOf(gatewayApiV1.GatewayClass{}): "/apis/" + gatewayApiV1.GroupName + "/v1/gatewayclasses/{name}", + reflect.TypeOf(gatewayApiV1.HTTPRouteList{}): "/apis/" + gatewayApiV1.GroupName + "/v1/namespaces/{namespace}/httproutes", + reflect.TypeOf(gatewayApiV1.HTTPRoute{}): "/apis/" + gatewayApiV1.GroupName + "/v1/namespaces/{namespace}/httproutes/{name}", + reflect.TypeOf(gatewayApiV1Beta1.GatewayList{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/namespaces/{namespace}/gateways", + reflect.TypeOf(gatewayApiV1Beta1.Gateway{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/namespaces/{namespace}/gateways/{name}", + reflect.TypeOf(gatewayApiV1Beta1.GatewayClassList{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/gatewayclasses", + reflect.TypeOf(gatewayApiV1Beta1.GatewayClass{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/gatewayclasses/{name}", + reflect.TypeOf(gatewayApiV1Beta1.HTTPRouteList{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/namespaces/{namespace}/httproutes", + reflect.TypeOf(gatewayApiV1Beta1.HTTPRoute{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/namespaces/{namespace}/httproutes/{name}", + reflect.TypeOf(gatewayApiV1Beta1.ReferenceGrantList{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/namespaces/{namespace}/referencegrants", + reflect.TypeOf(gatewayApiV1Beta1.ReferenceGrant{}): "/apis/" + gatewayApiV1.GroupName + "/v1beta1/namespaces/{namespace}/referencegrants/{name}", }, "gateway-api"), } generate(schemas, targetDirectory)