Skip to content

Commit

Permalink
Listener: the API change for multiple addresses support (envoyproxy#2…
Browse files Browse the repository at this point in the history
…1391)

Signed-off-by: He Jie Xu <[email protected]>
Signed-off-by: Amila Senadheera <[email protected]>
  • Loading branch information
soulxu authored and Amila-Rukshan committed Jun 28, 2022
1 parent 63c7a34 commit e9ec37a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions api/envoy/admin/v3/listeners.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ message ListenerStatus {
// The actual local address that the listener is listening on. If a listener was configured
// to listen on port 0, then this address has the port that was allocated by the OS.
config.core.v3.Address local_address = 2;

// The additional addresses the listener is listening on as specified via the :ref:`additional_addresses <envoy_v3_api_field_config.listener.v3.Listener.additional_addresses>`
// configuration.
// [#not-implemented-hide:]
repeated config.core.v3.Address additional_local_addresses = 3;
}
14 changes: 13 additions & 1 deletion api/envoy/config/listener/v3/listener.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,19 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [#protodoc-title: Listener configuration]
// Listener :ref:`configuration overview <config_listeners>`

// The additional address the listener is listening on.
// [#not-implemented-hide:]
message AdditionalAddress {
core.v3.Address address = 1;
}

// Listener list collections. Entries are *Listener* resources or references.
// [#not-implemented-hide:]
message ListenerCollection {
repeated xds.core.v3.CollectionEntry entries = 1;
}

// [#next-free-field: 33]
// [#next-free-field: 34]
message Listener {
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.Listener";

Expand Down Expand Up @@ -109,6 +115,12 @@ message Listener {
// Required unless *api_listener* or *listener_specifier* is populated.
core.v3.Address address = 2;

// The additional addresses the listener should listen on. The addresses must be unique across all
// listeners. Multiple addresses with port 0 can be supplied. When using multiple addresses in a single listener,
// all addresses use the same protocol, and multiple internal addresses are not supported.
// [#not-implemented-hide:]
repeated AdditionalAddress additional_addresses = 33;

// Optional prefix to use on listener stats. If empty, the stats will be rooted at
// `listener.<address as string>.`. If non-empty, stats will be rooted at
// `listener.<stat_prefix>.`.
Expand Down

0 comments on commit e9ec37a

Please sign in to comment.