Enable http2 options for grpc protocol

This commit is contained in:
Kyle Havlovitz 2022-07-12 14:38:44 -07:00
parent 608d0fe2c1
commit 7162e3bde2

View File

@ -426,7 +426,7 @@ func (s *ResourceGenerator) makeGatewayServiceClusters(
clusters = append(clusters, cluster)
gatewaySvc, ok := cfgSnap.TerminatingGateway.GatewayServices[svc]
isHTTP2 := ok && gatewaySvc.Protocol == "http2"
isHTTP2 := ok && (gatewaySvc.Protocol == "http2" || gatewaySvc.Protocol == "grpc")
if isHTTP2 {
if err := s.setHttp2ProtocolOptions(cluster); err != nil {
return nil, err