- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ExtractVirtualHosts (0.14 sec)
-
pilot/test/xdstest/extract.go
} func ExtractListener(name string, ll []*listener.Listener) *listener.Listener { for _, l := range ll { if l.Name == name { return l } } return nil } func ExtractVirtualHosts(rc *route.RouteConfiguration) map[string][]string { res := map[string][]string{} for _, vh := range rc.GetVirtualHosts() { var dests []string for _, r := range vh.Routes {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 19 22:42:42 UTC 2023 - 13.9K bytes - Viewed (0) -
pilot/pkg/networking/core/sidecar_simulation_test.go
exp = tt.expectedGateway } if vh == nil && exp != nil { t.Fatalf("route %q not found, have %v", tt.routeName, xdstest.MapKeys(r)) } gotHosts := xdstest.ExtractVirtualHosts(vh) for wk, wv := range exp { got := gotHosts[wk] if !reflect.DeepEqual(wv, got) { t.Errorf("%q: wanted %v, got %v (had %v)", wk, wv, got, xdstest.MapKeys(gotHosts)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 84.7K bytes - Viewed (0)