Skip to content

listener: implement support for multiple API listeners in Envoy native#45919

Open
paul-r-gall wants to merge 1 commit into
envoyproxy:mainfrom
paul-r-gall:multiple-api-listeners
Open

listener: implement support for multiple API listeners in Envoy native#45919
paul-r-gall wants to merge 1 commit into
envoyproxy:mainfrom
paul-r-gall:multiple-api-listeners

Conversation

@paul-r-gall

Copy link
Copy Markdown
Contributor

Commit Message: listener: implement support for multiple API listeners in Envoy native
Additional Description:

  • Refactors ListenerManagerImpl to use a map of API listeners instead of a single instance.
  • Adds apiListener(name) lookup method.
  • Modifies addOrUpdateListenerInternal to support adding multiple listeners via bootstrap, returning false if added_via_api to retain future LDS compatibility.
  • Updates unit tests to verify multiple listener behaviors.

One of the goals here is to get to a point where we can use API Listeners instead of Internal Listeners for some cases. Upcoming PR implements "loopback to API Listener".

Risk Level: low
Testing: unit, integration
Docs Changes: comment changes in listener.proto.
Release Notes: yes
AI Usage: yes, and I stand by the changes.

@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @wbpcode
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #45919 was opened by paul-r-gall.

see: more, trace.

- Refactors ListenerManagerImpl to use a map of API listeners instead of a single instance.
- Adds apiListener(name) lookup method.
- Modifies addOrUpdateListenerInternal to support adding multiple listeners via bootstrap, returning false if added_via_api to retain future LDS compatibility.
- Updates unit tests to verify multiple listener behaviors.

Signed-off-by: Paul Ogilby <pgal@google.com>
@paul-r-gall paul-r-gall force-pushed the multiple-api-listeners branch from 0984893 to 70c96e3 Compare July 1, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants