Description
What would you like to be added:
The universe of allowable resources that can be "routes" should be defined.
For example, the universe could be defined as HTTPRoute
, TCPRoute
(if the gateway controller implements TCPRoute
, which is an extension), and any additional resources as defined by the gateway controller implementation.
Why is this needed:
In a discussion of allowing the use of label selectors instead of object references to specify routes, @howardjohn raised the objection that a controller must know the type of the route:
routes may select objects other than just HttpRoute and TcpRoute. With this approach, an implementer would need to to query for all objects for the label? I suppose they could limit it to the set of objects that they consider valid routes though
It would be useful to be able to say that the label selector can match (for example) HTTPRoute
, TCPRoute
, and any additional implementation-specific resources, as defined by the gateway controller. With this definition, an implementer would know to use informers for these specific resources.