mirror of https://github.com/status-im/consul.git
Default to tcp protocol when workload protocol is unspecified (#18824)
This commit is contained in:
parent
850fbda2e9
commit
6838441c54
|
@ -243,7 +243,7 @@ func (l *ListenerBuilder) addInboundRouter(clusterName string, port *pbcatalog.W
|
||||||
return l
|
return l
|
||||||
}
|
}
|
||||||
|
|
||||||
if port.Protocol == pbcatalog.Protocol_PROTOCOL_TCP {
|
if port.Protocol == pbcatalog.Protocol_PROTOCOL_TCP || port.Protocol == pbcatalog.Protocol_PROTOCOL_UNSPECIFIED {
|
||||||
r := &pbproxystate.Router{
|
r := &pbproxystate.Router{
|
||||||
Destination: &pbproxystate.Router_L4{
|
Destination: &pbproxystate.Router_L4{
|
||||||
L4: &pbproxystate.L4Destination{
|
L4: &pbproxystate.L4Destination{
|
||||||
|
|
|
@ -24,7 +24,7 @@ func (m *Mapper) MapServiceToProxyStateTemplate(ctx context.Context, rt controll
|
||||||
return controller.MakeRequests(types.ProxyStateTemplateType, ids), nil
|
return controller.MakeRequests(types.ProxyStateTemplateType, ids), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// mapServiceThroughDestinationsToProxyStateTemplates takes and explicit
|
// mapServiceThroughDestinationsToProxyStateTemplates takes an explicit
|
||||||
// Service and traverses back through Destinations to Workloads to
|
// Service and traverses back through Destinations to Workloads to
|
||||||
// ProxyStateTemplates.
|
// ProxyStateTemplates.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue