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

Wrong RateLimitPolicy sample #148

Closed
guicassolato opened this issue Nov 13, 2024 · 0 comments
Closed

Wrong RateLimitPolicy sample #148

guicassolato opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@guicassolato
Copy link

The RateLimitPolicy provided as example when creating a new policy is not valid.

Screenshot 2024-11-12 at 17 02 28



A correct one equivalent to the above is:

apiVersion: kuadrant.io/v1
kind: RateLimitPolicy
metadata:
  name: example-ratelimitpolicy
  namespace: default
spec:
  targetRef:
    group: gateway.networking.k8s.io
    kind: Gateway
    name: prod-web
  limits:
    toystore-api-per-username:
      rates:
        - limit: 100
          window: 1s
        - limit: 1000
          window: 1m
      counters:
        - expression: auth.identity.username
@guicassolato guicassolato added the bug Something isn't working label Nov 13, 2024
@github-project-automation github-project-automation bot moved this to Done in Kuadrant Nov 13, 2024
@jasonmadigan jasonmadigan self-assigned this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants