Skip to content

Commit

Permalink
Add missing sectionNames to HTTPRoutes
Browse files Browse the repository at this point in the history
Signed-off-by: David Martin <[email protected]>
  • Loading branch information
david-martin committed Jan 20, 2025
1 parent 8f81327 commit 1149aa3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ spec:
hostnames:
- api.toystore.com
rules:
- matches: # rule-1
- name: rule-1
matches:
- method: GET
path:
type: PathPrefix
Expand All @@ -131,7 +132,8 @@ spec:
backendRefs:
- name: toystore
port: 80
- matches: # rule-2
- name: rule-2
matches:
- path:
type: PathPrefix
value: "/admin"
Expand Down
5 changes: 3 additions & 2 deletions doc/user-guides/ratelimiting/multi-auth-rlp-same-section.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ spec:
hostnames:
- api.toystore.com
rules:
- matches:
- name: rule-1
matches:
- path:
type: Exact
value: "/toy"
Expand Down Expand Up @@ -125,7 +126,7 @@ curl -H 'Host: api.toystore.com' http://$KUADRANT_GATEWAY_URL/toy -i
> **Note**: If the command above fails to hit the Toy Store API on your environment, try forwarding requests to the service and accessing over localhost:
>
> ```sh
> kubectl port-forward -n ${KUADRANT_GATEWAY_NS} service/-${KUADRANT_GATEWAY_NAME}-istio 9080:80 >/dev/null 2>&1 &
> kubectl port-forward -n ${KUADRANT_GATEWAY_NS} service/${KUADRANT_GATEWAY_NAME}-istio 9080:80 >/dev/null 2>&1 &
> export KUADRANT_GATEWAY_URL=localhost:9080
> ```
>
Expand Down
8 changes: 5 additions & 3 deletions doc/user-guides/ratelimiting/simple-rl-for-app-developers.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,17 @@ spec:
hostnames:
- api.toystore.com
rules:
- matches:
- name: rule-1
matches:
- method: GET
path:
type: PathPrefix
value: "/toys"
backendRefs:
- name: toystore
port: 80
- matches: # it has to be a separate HTTPRouteRule so we do not rate limit other endpoints
- name: rule-2
matches: # it has to be a separate HTTPRouteRule so we do not rate limit other endpoints
- method: POST
path:
type: Exact
Expand Down Expand Up @@ -122,7 +124,7 @@ curl -H 'Host: api.toystore.com' http://$KUADRANT_GATEWAY_URL/toys -i
> **Note**: If the command above fails to hit the Toy Store API on your environment, try forwarding requests to the service and accessing over localhost:
>
> ```sh
> kubectl port-forward -n ${KUADRANT_GATEWAY_NS} service/-${KUADRANT_GATEWAY_NAME}-istio 9080:80 >/dev/null 2>&1 &
> kubectl port-forward -n ${KUADRANT_GATEWAY_NS} service/${KUADRANT_GATEWAY_NAME}-istio 9080:80 >/dev/null 2>&1 &
> export KUADRANT_GATEWAY_URL=localhost:9080
> ```
>
Expand Down

0 comments on commit 1149aa3

Please sign in to comment.