Skip to content

Commit

Permalink
Default to tcp protocol when workload protocol is unspecified (#18824)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishustava authored Sep 15, 2023
1 parent 850fbda commit 6838441
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (l *ListenerBuilder) addInboundRouter(clusterName string, port *pbcatalog.W
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{
Destination: &pbproxystate.Router_L4{
L4: &pbproxystate.L4Destination{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (m *Mapper) MapServiceToProxyStateTemplate(ctx context.Context, rt controll
return controller.MakeRequests(types.ProxyStateTemplateType, ids), nil
}

// mapServiceThroughDestinationsToProxyStateTemplates takes and explicit
// mapServiceThroughDestinationsToProxyStateTemplates takes an explicit
// Service and traverses back through Destinations to Workloads to
// ProxyStateTemplates.
//
Expand Down

0 comments on commit 6838441

Please sign in to comment.