exclude inbound/outbound listeners from upstreams output (#16184)
This commit is contained in:
parent
9ee33dff3c
commit
86b3ed6319
|
@ -112,7 +112,9 @@ func (t *Troubleshoot) GetUpstreams() ([]string, error) {
|
||||||
|
|
||||||
for _, listener := range lcd.GetDynamicListeners() {
|
for _, listener := range lcd.GetDynamicListeners() {
|
||||||
upstream := envoyID(listener.Name)
|
upstream := envoyID(listener.Name)
|
||||||
if upstream != "" && upstream != "public_listener" {
|
if upstream != "" && upstream != "public_listener" &&
|
||||||
|
upstream != "outbound_listener" &&
|
||||||
|
upstream != "inbound_listener" {
|
||||||
upstreams = append(upstreams, upstream)
|
upstreams = append(upstreams, upstream)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue