Skip to content

Commit

Permalink
remove the useless logos
Browse files Browse the repository at this point in the history
Signed-off-by: gang.liu <gang.liu@daocloud.io>
  • Loading branch information
izturn committed Nov 6, 2023
2 parents a636894 + 5578185 commit f1ac729
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 336 deletions.
2 changes: 1 addition & 1 deletion internal/envoy/v3/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ func (b *httpConnectionManagerBuilder) AddFilter(f *http.HttpFilter) *httpConnec
// If this happens, it has to be programmer error, so we panic to tell them
// it needs to be fixed. Note that in hitting this case, it doesn't matter we added
// the second one earlier, because we're panicking anyway.
if f.GetTypedConfig().MessageIs(&envoy_router_v3.Router{}) {
if f.GetTypedConfig().MessageIs(&envoy_router_v3.Router{}) && routerIndex != lastIndex {
panic("Can't add more than one router to a filter chain")
}
if routerIndex != lastIndex {
Expand Down
29 changes: 29 additions & 0 deletions internal/envoy/v3/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1785,6 +1785,35 @@ func TestAddFilter(t *testing.T) {
},
},
},
"Add a single router filter to non-empty builder": {
builder: HTTPConnectionManagerBuilder().AddFilter(&http.HttpFilter{
Name: "grpcweb",
ConfigType: &http.HttpFilter_TypedConfig{
TypedConfig: protobuf.MustMarshalAny(&envoy_grpc_web_v3.GrpcWeb{}),
},
}),
add: &http.HttpFilter{
Name: "router",
ConfigType: &http.HttpFilter_TypedConfig{
TypedConfig: protobuf.MustMarshalAny(&envoy_router_v3.Router{}),
},
},
want: []*http.HttpFilter{
{
Name: "grpcweb",
ConfigType: &http.HttpFilter_TypedConfig{
TypedConfig: protobuf.MustMarshalAny(&envoy_grpc_web_v3.GrpcWeb{}),
},
},
{
Name: "router",
ConfigType: &http.HttpFilter_TypedConfig{
TypedConfig: protobuf.MustMarshalAny(&envoy_router_v3.Router{}),
},
},
},
},

"Add a filter to a builder with a router": {
builder: HTTPConnectionManagerBuilder().AddFilter(&http.HttpFilter{
Name: "router",
Expand Down
Binary file removed site/img/adopters/VMware-logo-grey.jpg
Binary file not shown.
Binary file removed site/img/adopters/daocloud.png
Binary file not shown.
Binary file removed site/img/adopters/flyte.png
Binary file not shown.
7 changes: 0 additions & 7 deletions site/img/adopters/gojek.svg

This file was deleted.

Loading

0 comments on commit f1ac729

Please sign in to comment.