Skip to content

Commit

Permalink
docs(gateway): explain the exact semantics of a PREFIX match
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
  • Loading branch information
michaelbeaumont committed Sep 15, 2022
1 parent 4cc7092 commit a15956d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions api/mesh/v1alpha1/gateway_route.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/mesh/v1alpha1/gateway_route.proto
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ message MeshGatewayRoute {
// Value is the path to match against. For EXACT and PREFIX match
// types, it must be a HTTP URI path. For the REGEX match type,
// it must be a RE2 regular expression.
// Note that a PREFIX match succeeds only if the prefix is the
// the entire path or is followed by a /. I.e. a prefix of the
// path in terms of path elements.
string value = 2 [
(doc.required) = true,
(validate.rules).message = {required : true},
Expand Down
5 changes: 4 additions & 1 deletion docs/generated/resources/policy_meshgatewayroute.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@

Value is the path to match against. For EXACT and PREFIX match
types, it must be a HTTP URI path. For the REGEX match type,
it must be a RE2 regular expression.
it must be a RE2 regular expression.
Note that a PREFIX match succeeds only if the prefix is the
the entire path or is followed by a /. I.e. a prefix of the
path in terms of path elements.

- `method` (optional, enum)

Expand Down

0 comments on commit a15956d

Please sign in to comment.