File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import (
29
29
v3listenerpb "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3"
30
30
v3httppb "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3"
31
31
"github.com/golang/protobuf/proto"
32
+ "github.com/golang/protobuf/ptypes"
32
33
anypb "github.com/golang/protobuf/ptypes/any"
33
34
"github.com/google/go-cmp/cmp"
34
35
"github.com/google/go-cmp/cmp/cmpopts"
@@ -84,14 +85,11 @@ func (s) TestUnmarshalListener(t *testing.T) {
84
85
},
85
86
},
86
87
}
87
- mcm , _ := proto . Marshal (cm )
88
+ mcm , _ := ptypes . MarshalAny (cm )
88
89
lis := & v3listenerpb.Listener {
89
90
Name : v3LDSTarget ,
90
91
ApiListener : & v3listenerpb.ApiListener {
91
- ApiListener : & anypb.Any {
92
- TypeUrl : version .V3HTTPConnManagerURL ,
93
- Value : mcm ,
94
- },
92
+ ApiListener : mcm ,
95
93
},
96
94
}
97
95
mLis , _ := proto .Marshal (lis )
Original file line number Diff line number Diff line change @@ -45,6 +45,6 @@ const (
45
45
V3RouteConfigURL = "type.googleapis.com/envoy.config.route.v3.RouteConfiguration"
46
46
V3ClusterURL = "type.googleapis.com/envoy.config.cluster.v3.Cluster"
47
47
V3EndpointsURL = "type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment"
48
- V3HTTPConnManagerURL = "type.googleapis.com/envoy.config.filter .network.http_connection_manager.v3.HttpConnectionManager"
48
+ V3HTTPConnManagerURL = "type.googleapis.com/envoy.extensions.filters .network.http_connection_manager.v3.HttpConnectionManager"
49
49
V3UpstreamTLSContextURL = "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext"
50
50
)
You can’t perform that action at this time.
0 commit comments