Skip to content

Commit

Permalink
find and replace v1beta2 rlp
Browse files Browse the repository at this point in the history
Signed-off-by: craig <[email protected]>

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
maleck13 committed Oct 15, 2024
1 parent 45efe5d commit d7d515c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 15 deletions.
24 changes: 12 additions & 12 deletions examples/toystore/ratelimitpolicy_gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ spec:
limits:
"expensive-operation":
rates:
- limit: 2
duration: 30
unit: second
- limit: 2
duration: 30
unit: second
when:
- selector: request.method
operator: eq
value: POST
- selector: request.method
operator: eq
value: POST

"limit-per-ip":
rates:
- limit: 5
duration: 30
unit: second
- limit: 5
duration: 30
unit: second
when:
- selector: source.ip
operator: eq
value: source.address
- selector: source.ip
operator: eq
value: source.address
40 changes: 37 additions & 3 deletions examples/toystore/ratelimitpolicy_httproute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@ spec:
limits:
"global":
rates:
<<<<<<< HEAD
- limit: 6
duration: 30
unit: second
=======
- limit: 6
duration: 30
unit: second

>>>>>>> 8996d6dd (find and replace v1beta2 rlp)
"get-toy":
when:
- selector: request.method
Expand All @@ -22,15 +29,24 @@ spec:
operator: eq
value: "/toy"
rates:
<<<<<<< HEAD
- limit: 5
duration: 30
unit: second
"admin-post-toy-per-user":
=======
- limit: 5
duration: 30
unit: second

"admin-post-or-delete-toy-per-user":
>>>>>>> 8996d6dd (find and replace v1beta2 rlp)
rates:
- limit: 2
duration: 30
unit: second
- limit: 2
duration: 30
unit: second
counters:
<<<<<<< HEAD
- metadata.filter_metadata.envoy\.filters\.http\.ext_authz.username
when:
- selector: request.method
Expand Down Expand Up @@ -59,3 +75,21 @@ spec:
- selector: metadata.filter_metadata.envoy\.filters\.http\.ext_authz.admin
operator: eq
value: "true"
=======
- metadata.filter_metadata.envoy\.filters\.http\.ext_authz.username
routeSelectors:
- matches:
- path:
type: Exact
value: "/admin/toy"
method: POST
- matches:
- path:
type: Exact
value: "/admin/toy"
method: DELETE
when:
- selector: metadata.filter_metadata.envoy\.filters\.http\.ext_authz.admin
operator: eq
value: "true"
>>>>>>> 8996d6dd (find and replace v1beta2 rlp)

0 comments on commit d7d515c

Please sign in to comment.