Description
What would you like to be added:
A way for policies to apply only to specific GatewayClasses. This would not be required, but it would be a field that policies could choose to include in their targetRef and would be recognized + supported by tools like gwctl when it was present.
For example, we might have a targetRef like this:
targetRefs:
- kind: Service
name: foo
gatewayClassName: bar
This would mean that this specific policy attached to Service foo
would only be implemented by Gateways of bar
class, and would be ignored by other Gateways.
Why this is needed:
We're seeing the rise of multi-implementation policies used with Gateway API - policies that are intended to be implemented by multiple GatewayClasses such as BackendTLSPolicy, BackendLBPolicy, and even some vendor-specific ones where the vendor actually has multiple implementations.