Skip to content

Commit

Permalink
Merge pull request #2185 from saltbo/docs/updateexample
Browse files Browse the repository at this point in the history
docs(site-src): update the example for the matches
  • Loading branch information
k8s-ci-robot authored Jul 17, 2023
2 parents 6fe8e5f + 8567e7e commit ba78bf0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions site-src/api-types/httproute.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,16 @@ Take the following matches configuration as an example:
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
...
matches:
- path:
value: "/foo"
headers:
values:
version: "2"
- path:
value: "/v2/foo"
spec:
rules:
- matches:
- path:
value: "/foo"
headers:
- name: "version"
value: "2"
- path:
value: "/v2/foo"
```
For a request to match against this rule, it must satisfy EITHER of the
Expand Down

0 comments on commit ba78bf0

Please sign in to comment.