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 all commits
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
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
84 changes: 42 additions & 42 deletions examples/toystore/ratelimitpolicy_httproute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,54 +8,54 @@ spec:
kind: HTTPRoute
name: toystore
limits:
"global":
'global':
rates:
- limit: 6
duration: 30
unit: second
"get-toy":
- limit: 6
duration: 30
unit: second
'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:
- limit: 5
duration: 30
unit: second
"admin-post-toy-per-user":
- limit: 5
duration: 30
unit: second
'admin-post-toy-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
- 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
- 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"
- 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'
Loading