exclude inbound/outbound listeners from upstreams output (#16184)

This commit is contained in:
malizz 2023-02-06 18:48:55 -08:00 committed by GitHub
parent 9ee33dff3c
commit 86b3ed6319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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)
}
}