File tree 1 file changed +10
-3
lines changed 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -72,20 +72,27 @@ func translateListenerToEnvoyListener(listener gatewayv1.Listener) (map[resource
72
72
},
73
73
},
74
74
HttpFilters : []* hcmv3.HttpFilter {
75
+ // The router filter must be the last in the chain
75
76
{
76
- Name : wellknown .Router , // The router filter must be the last in the chain
77
+ Name : wellknown .Router ,
78
+ ConfigType : & hcmv3.HttpFilter_TypedConfig {
79
+ TypedConfig : & anypb.Any {
80
+ // Empty config for the router filter
81
+ TypeUrl : "type.googleapis.com/envoy.extensions.filters.http.router.v3.Router" ,
82
+ },
83
+ },
77
84
},
78
85
},
79
86
}
80
- pbst , err := anypb .New (httpConnectionManager )
87
+ hcmAny , err := anypb .New (httpConnectionManager )
81
88
if err != nil {
82
89
return nil , err
83
90
}
84
91
envoyListener .FilterChains = []* listenerv3.FilterChain {{
85
92
Filters : []* listenerv3.Filter {{
86
93
Name : wellknown .HTTPConnectionManager ,
87
94
ConfigType : & listenerv3.Filter_TypedConfig {
88
- TypedConfig : pbst ,
95
+ TypedConfig : hcmAny ,
89
96
},
90
97
}},
91
98
}}
You can’t perform that action at this time.
0 commit comments