When the rules are empty (null or empty list), take the default values from the target resource (HTTPRoute). This implementation goes to the RateLimitPolicy
Check the wasm plugin object to see the default rules read from the network resource. One of the rule list is copied directly from the policy, the other is generated from the network resource matching rules.
what
When the rules are empty (
null
orempty list
), take the default values from the target resource (HTTPRoute). This implementation goes to the RateLimitPolicyPartially implements https://github.com/Kuadrant/kuadrant-controller/issues/190
Verification steps
Run dev env
Create HTTPRoute
Create RateLimitPolicy, with two configurations, one including some rules, another with empty rules
Check the wasm plugin object to see the default rules read from the network resource. One of the rule list is copied directly from the policy, the other is generated from the network resource matching rules.