Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find and replace v1beta2 RLP with v1beta3 #933

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
find and replace v1beta2 rlp
Signed-off-by: craig <cbrookes@redhat.com>

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
maleck13 committed Oct 15, 2024
commit d7d515caf0a0329fa4020cbe86fc1c617e12454e
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)
Loading