Skip to content

Commit

Permalink
xds client: Updated v3 type for http connection manager (#4137)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeepmvn authored and menghanl committed Jan 11, 2021
1 parent 2d61c30 commit 3aa7457
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions xds/internal/client/client_lds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
v3listenerpb "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3"
v3httppb "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3"
"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/ptypes"
anypb "github.com/golang/protobuf/ptypes/any"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
Expand Down Expand Up @@ -84,14 +85,11 @@ func (s) TestUnmarshalListener(t *testing.T) {
},
},
}
mcm, _ := proto.Marshal(cm)
mcm, _ := ptypes.MarshalAny(cm)
lis := &v3listenerpb.Listener{
Name: v3LDSTarget,
ApiListener: &v3listenerpb.ApiListener{
ApiListener: &anypb.Any{
TypeUrl: version.V3HTTPConnManagerURL,
Value: mcm,
},
ApiListener: mcm,
},
}
mLis, _ := proto.Marshal(lis)
Expand Down
2 changes: 1 addition & 1 deletion xds/internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ const (
V3RouteConfigURL = "type.googleapis.com/envoy.config.route.v3.RouteConfiguration"
V3ClusterURL = "type.googleapis.com/envoy.config.cluster.v3.Cluster"
V3EndpointsURL = "type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment"
V3HTTPConnManagerURL = "type.googleapis.com/envoy.config.filter.network.http_connection_manager.v3.HttpConnectionManager"
V3HTTPConnManagerURL = "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager"
V3UpstreamTLSContextURL = "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext"
)

0 comments on commit 3aa7457

Please sign in to comment.