Skip to content

Commit

Permalink
remove rate limit policy
Browse files Browse the repository at this point in the history
  • Loading branch information
harjotgill committed Aug 28, 2022
1 parent 536e4f5 commit 03f650f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 27 deletions.
26 changes: 26 additions & 0 deletions pkg/policies/controlplane/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ var _ = Describe("Validator", func() {
validateExample(latencyGradientPolicy)
})

It("accepts example configmap for classification", func() {
validateExample(rateLimitPolicy)
})

It("accepts example configmap for classification", func() {
validateExample(classificationPolicy)
})
Expand Down Expand Up @@ -311,3 +315,25 @@ data:
object := json.unmarshal(base64url.decode(parts[0]))
user := object.user
`

const rateLimitPolicy = `
rate-limit-policy.yaml: |
circuit:
evaluation_interval: "0.5s"
components:
- constant:
value: "250.0"
out_ports:
output:
signal_name: "RATE_LIMIT"
- rate_limiter:
in_ports:
limit:
signal_name: "RATE_LIMIT"
selector:
service: "demo1-demo-app.demoapp.svc.cluster.local"
control_point:
traffic: "ingress"
label_key: "request_header_user-type"
limit_reset_interval: "1s"
`
27 changes: 0 additions & 27 deletions rate-limit-policy.yaml

This file was deleted.

0 comments on commit 03f650f

Please sign in to comment.