-
Notifications
You must be signed in to change notification settings - Fork 704
feat: allow merge rate limit rule in BTP #5915
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| kind: BackendTrafficPolicy | ||
| metadata: | ||
| name: original | ||
| spec: | ||
| rateLimit: | ||
| type: Global | ||
| global: | ||
| rules: | ||
| - name: one | ||
| clientSelectors: | ||
| - headers: | ||
| - name: x-user-id | ||
| type: Exact | ||
| value: one | ||
| limit: | ||
| # 21 instead of 20 to test the zero request cost. | ||
| requests: 21 | ||
| unit: Hour | ||
| cost: | ||
| request: | ||
| from: Number | ||
| number: 0 | ||
| response: | ||
| from: Metadata | ||
| metadata: | ||
| namespace: io.envoyproxy.gateway.e2e | ||
| key: request_cost_set_by_ext_proc |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| kind: BackendTrafficPolicy | ||
| metadata: | ||
| creationTimestamp: null | ||
| name: original | ||
| spec: | ||
| rateLimit: | ||
| global: | ||
| rules: | ||
| - clientSelectors: | ||
| - headers: | ||
| - name: x-user-id | ||
| type: Exact | ||
| value: two | ||
| cost: | ||
| request: | ||
| from: Number | ||
| number: 0 | ||
| response: | ||
| from: Metadata | ||
| metadata: | ||
| key: request_cost_set_by_ext_proc | ||
| namespace: io.envoyproxy.gateway.e2e | ||
| limit: | ||
| requests: 21 | ||
| unit: Hour | ||
| name: two | ||
| type: Global | ||
| status: | ||
| ancestors: null |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| kind: BackendTrafficPolicy | ||
| metadata: | ||
| name: original | ||
| spec: | ||
| rateLimit: | ||
| type: Global | ||
| global: | ||
| rules: | ||
| - name: two | ||
| clientSelectors: | ||
| - headers: | ||
| - name: x-user-id | ||
| type: Exact | ||
| value: two | ||
| limit: | ||
| # 21 instead of 20 to test the zero request cost. | ||
| requests: 21 | ||
| unit: Hour | ||
| cost: | ||
| request: | ||
| from: Number | ||
| number: 0 | ||
| response: | ||
| from: Metadata | ||
| metadata: | ||
| namespace: io.envoyproxy.gateway.e2e | ||
| key: request_cost_set_by_ext_proc |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| kind: BackendTrafficPolicy | ||
| metadata: | ||
| creationTimestamp: null | ||
| name: original | ||
| spec: | ||
| rateLimit: | ||
| global: | ||
| rules: | ||
| - clientSelectors: | ||
| - headers: | ||
| - name: x-user-id | ||
| type: Exact | ||
| value: two | ||
| cost: | ||
| request: | ||
| from: Number | ||
| number: 0 | ||
| response: | ||
| from: Metadata | ||
| metadata: | ||
| key: request_cost_set_by_ext_proc | ||
| namespace: io.envoyproxy.gateway.e2e | ||
| limit: | ||
| requests: 21 | ||
| unit: Hour | ||
| name: two | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is order arbitrary or deterministic ?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I.e. two before one / patch before original
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need to double check, but I don't think we have way to control it. |
||
| - clientSelectors: | ||
| - headers: | ||
| - name: x-user-id | ||
| type: Exact | ||
| value: one | ||
| cost: | ||
| request: | ||
| from: Number | ||
| number: 0 | ||
| response: | ||
| from: Metadata | ||
| metadata: | ||
| key: request_cost_set_by_ext_proc | ||
| namespace: io.envoyproxy.gateway.e2e | ||
| limit: | ||
| requests: 21 | ||
| unit: Hour | ||
| name: one | ||
| type: Global | ||
| status: | ||
| ancestors: null | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An unique name will be generated if not provided by the user?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it won't happen.