Skip to content

XListenerSet "allowedRoutes" matches against gateway's namespace, not XListenerSet namespace #8230

@lambcode-unified

Description

@lambcode-unified

Description:
I'm trying out the new XListenerSet feature, and noticed that if I have a route in the same namespace as my XListenerSet manifest, the route will not attach to the XListenerSet unless the allowedRoutes.namespaces.from is set to ALL. I think this is because the route's namespace is being compared to the gateway's namespace rather than the XListenerSet's namespace here

return l.gateway.Namespace == namespace.Name

Repro steps:

  1. Create a gateway in NamespaceA with allowedListeners.namespaces.from: ALL
  2. Create a listenerSet in NamespaceB with a parentRef of the gateway, and with a listener that does not have the allowedRoutes section
  3. Create a route in NamespaceB that has a parentRef of the listenerSet
  4. Note that the route cannot attach with a status of No listeners included by this parent ref allowed this attachment.

Environment:
Version: 1.7.0
config.envoyGateway.gatewayAPI.enabled: ['XListenerSet']

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions