Backport of docs: add note about path prefix matching behavior for HTTPRoute config into release/1.16.x (#17861)

* backport of commit 64f6ad32f0

* backport of commit 7cd1e75cb8

---------

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
pull/17870/head
hc-github-team-consul-core 2023-06-23 17:23:07 -05:00 committed by GitHub
parent bb00ec6448
commit 94c90ca020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -533,6 +533,11 @@ Specifies the HTTP method to match.
Specifies type of match for the path: `"exact"`, `"prefix"`, or `"regex"`. Specifies type of match for the path: `"exact"`, `"prefix"`, or `"regex"`.
If set to `prefix`, Consul uses simple string matching to identify incoming request prefixes. For example, if the route is configured to match incoming requests to services prefixed with `/dev`, then the gateway would match requests to `/dev-` and `/deviate` and route to the upstream.
This deviates from the
[Kubernetes Gateway API specification](https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io%2fv1beta1.PathMatchType), which matches on full path elements. In the previous example, _only_ requests to `/dev` or `/dev/` would match.
#### Values #### Values
- Default: none - Default: none