Kuadrant / kuadrant-controller

Apache License 2.0
12 stars 7 forks source link

fix ratelimit namespace and handle deletion of rl policy #94

Closed eguzki closed 2 years ago

eguzki commented 2 years ago

The limitador operator applies rate limit CR configuration on the limitador service running in the same namespace of the CR

Verification steps

  1. make local-setup
  2. Deploy toystore ratelimitpolicy in default namespace k apply -f examples/toystore

The kuadrant controller should have created ratelimit objects in the same namespace as the limitador service, i.e. kuadrant-system

$ k get ratelimits -A
NAMESPACE         NAME                 AGE
kuadrant-system   default-toystore-1   7s
kuadrant-system   default-toystore-2   7s
  1. Remove the rate limit policy
    k delete ratelimitpolicy toystore

    Check that ratelimit CRs are also deleted

$ k get ratelimits -A
No resources found.