Skip to content

Commit

Permalink
update RLP version
Browse files Browse the repository at this point in the history
rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
maleck13 committed Oct 15, 2024
1 parent d7d515c commit a2ed0be
Showing 1 changed file with 30 additions and 64 deletions.
94 changes: 30 additions & 64 deletions examples/toystore/ratelimitpolicy_httproute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,88 +8,54 @@ spec:
kind: HTTPRoute
name: toystore
limits:
"global":
'global':
rates:
<<<<<<< HEAD
- limit: 6
duration: 30
unit: second
=======
- limit: 6
duration: 30
unit: second

>>>>>>> 8996d6dd (find and replace v1beta2 rlp)
"get-toy":
'get-toy':
when:
- selector: request.method
operator: eq
value: "GET"
- selector: request.path
operator: eq
value: "/toy"
- selector: request.method
operator: eq
value: 'GET'
- selector: request.path
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)
'admin-post-toy-per-user':
rates:
- limit: 2
duration: 30
unit: second
counters:
<<<<<<< HEAD
- metadata.filter_metadata.envoy\.filters\.http\.ext_authz.username
- metadata.filter_metadata.envoy\.filters\.http\.ext_authz.username
when:
- selector: request.method
operator: eq
value: "GET"
- selector: request.path
operator: eq
value: "/admin/toy"
- selector: metadata.filter_metadata.envoy\.filters\.http\.ext_authz.admin
operator: eq
value: "true"
"admin-delete-per-user":
- selector: request.method
operator: eq
value: 'GET'
- selector: request.path
operator: eq
value: '/admin/toy'
- selector: metadata.filter_metadata.envoy\.filters\.http\.ext_authz.admin
operator: eq
value: 'true'
'admin-delete-per-user':
rates:
- limit: 2
duration: 30
unit: second
- limit: 2
duration: 30
unit: second
counters:
- metadata.filter_metadata.envoy\.filters\.http\.ext_authz.username
when:
- selector: request.method
operator: eq
value: "DELETE"
- selector: request.path
operator: eq
value: "/admin/toy"
- 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: request.method
operator: eq
value: 'DELETE'
- selector: request.path
operator: eq
value: '/admin/toy'
- selector: metadata.filter_metadata.envoy\.filters\.http\.ext_authz.admin
operator: eq
value: "true"
>>>>>>> 8996d6dd (find and replace v1beta2 rlp)
value: 'true'

0 comments on commit a2ed0be

Please sign in to comment.