In https://github.com/kong/kubernetes-ingress-controller/pull/5972 we introduced a validation rule that prevents accepting objects that have multiple plugins of the same type assigned to them. We didn't take into account that it may be a valid use case if the plugin is associated with two different object kinds at the same time (e.g. a combination of service and consumer, route and consumer group, etc.).
Expected Behavior
Even if an object has multiple plugins of the same type, it is accepted by the admission webhook.
Steps To Reproduce
1. Make sure KIC runs with the admission server enabled
2. Create a Service with `konghq.com/plugins` pointing to two different KongPlugins of the same type.
Is there an existing issue for this?
Current Behavior
In https://github.com/kong/kubernetes-ingress-controller/pull/5972 we introduced a validation rule that prevents accepting objects that have multiple plugins of the same type assigned to them. We didn't take into account that it may be a valid use case if the plugin is associated with two different object kinds at the same time (e.g. a combination of service and consumer, route and consumer group, etc.).
Expected Behavior
Even if an object has multiple plugins of the same type, it is accepted by the admission webhook.
Steps To Reproduce
Kong Ingress Controller version
Kubernetes version
Anything else?
No response