Skip to content

Commit

Permalink
exclude inbound/outbound listeners from upstreams output (#16184)
Browse files Browse the repository at this point in the history
  • Loading branch information
malizz authored Feb 7, 2023
1 parent e85fdfd commit 3be514a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion troubleshoot/proxy/troubleshoot_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ func (t *Troubleshoot) GetUpstreams() ([]string, error) {

for _, listener := range lcd.GetDynamicListeners() {
upstream := envoyID(listener.Name)
if upstream != "" && upstream != "public_listener" {
if upstream != "" && upstream != "public_listener" &&
upstream != "outbound_listener" &&
upstream != "inbound_listener" {
upstreams = append(upstreams, upstream)
}
}
Expand Down

0 comments on commit 3be514a

Please sign in to comment.