forked from Kuadrant/kuadrant-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove networkingRef from RateLimitPolicy (Kuadrant#86)
* remove networkingRef from RateLimitPolicy * fix lint errors * update samples for RLP * update sample RLP to include vhost level RateLimit
- Loading branch information
1 parent
2464ad5
commit 9adfed3
Showing
12 changed files
with
410 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,48 @@ | ||
--- | ||
apiVersion: apim.kuadrant.io/v1alpha1 | ||
kind: RateLimitPolicy | ||
metadata: | ||
name: ratelimitpolicy-sample | ||
namespace: kuadrant-system | ||
labels: | ||
app: toystore | ||
name: toystore | ||
spec: | ||
networkingRef: | ||
- type: VirtualService | ||
name: toystore | ||
routes: | ||
- name: get-toy | ||
stage: BOTH | ||
actions: | ||
- generic_key: | ||
descriptor_key: get | ||
descriptor_value: "yes" | ||
rateLimits: | ||
- stage: BOTH | ||
actions: | ||
- generic_key: | ||
descriptor_key: get-toy | ||
descriptor_value: "yes" | ||
- generic_key: | ||
descriptor_key: other-get-toy | ||
descriptor_value: "yes" | ||
- name: add-toy | ||
stage: POSTAUTH | ||
rateLimits: | ||
- stage: POSTAUTH | ||
actions: | ||
- generic_key: | ||
descriptor_key: add-toy | ||
descriptor_value: "yes" | ||
- name: delete-toy | ||
rateLimits: | ||
- stage: PREAUTH | ||
actions: | ||
- generic_key: | ||
descriptor_key: delete-toy | ||
descriptor_value: "yes" | ||
rateLimits: | ||
- stage: PREAUTH | ||
actions: | ||
- generic_key: | ||
descriptor_key: admin | ||
descriptor_key: vhaction | ||
descriptor_value: "yes" | ||
limits: | ||
- conditions: ["admin == yes"] | ||
- conditions: ["get-toy == yes"] | ||
max_value: 2 | ||
namespace: postauth | ||
namespace: preauth | ||
seconds: 15 | ||
variables: [] | ||
- condtitions: ["vhaction == yes"] | ||
max_value: 4 | ||
namespace: preauth | ||
seconds: 15 | ||
variables: [] |
Oops, something went wrong.