From 6349fc189b6fff3205c346a627183cfac597c0e6 Mon Sep 17 00:00:00 2001 From: traky Date: Thu, 4 Jul 2024 18:37:42 +0800 Subject: [PATCH 1/2] add stream[].match.host to spec --- docs/en/latest/references/apisix_route_v2.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/latest/references/apisix_route_v2.md b/docs/en/latest/references/apisix_route_v2.md index 717b1954c8..7fca1acb41 100644 --- a/docs/en/latest/references/apisix_route_v2.md +++ b/docs/en/latest/references/apisix_route_v2.md @@ -78,6 +78,7 @@ The table below describes each of the attributes in the spec. The fields `apiVer | stream[].name | string (required) | Name of the rule. | | stream[].match | object (required) | Conditions to match the request with the Route. | | stream[].match.ingressPort | integer (required) | Listening port in the Ingress proxy server. This port should be defined in the [APISIX configuration](https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L101). | +| stream[].match.host | string | SNI. | | stream[].backend | object | Backend service (deprecated). Use `http[].backends` instead. | | stream[].backend.serviceName | string | Name of the backend service (depricated). The service and the `ApisixRoute` resource should be created in the same namespace. | | stream[].backend.servicePort | integer or string | Port number or the name defined in the service object of the backend (deprecated). | From c24b674ba9af5d52e01d1549383be4e8571cb2d8 Mon Sep 17 00:00:00 2001 From: traky Date: Thu, 4 Jul 2024 18:40:45 +0800 Subject: [PATCH 2/2] chore: adjust spacing --- docs/en/latest/references/apisix_route_v2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/latest/references/apisix_route_v2.md b/docs/en/latest/references/apisix_route_v2.md index 7fca1acb41..ceb889f73e 100644 --- a/docs/en/latest/references/apisix_route_v2.md +++ b/docs/en/latest/references/apisix_route_v2.md @@ -78,7 +78,7 @@ The table below describes each of the attributes in the spec. The fields `apiVer | stream[].name | string (required) | Name of the rule. | | stream[].match | object (required) | Conditions to match the request with the Route. | | stream[].match.ingressPort | integer (required) | Listening port in the Ingress proxy server. This port should be defined in the [APISIX configuration](https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L101). | -| stream[].match.host | string | SNI. | +| stream[].match.host | string | SNI. | | stream[].backend | object | Backend service (deprecated). Use `http[].backends` instead. | | stream[].backend.serviceName | string | Name of the backend service (depricated). The service and the `ApisixRoute` resource should be created in the same namespace. | | stream[].backend.servicePort | integer or string | Port number or the name defined in the service object of the backend (deprecated). |