Skip to content

Commit ea2ba42

Browse files
authored
Update http2_protocol_options pattern (#1397)
1 parent 83eec72 commit ea2ba42

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

net/grpc/gateway/examples/echo/envoy.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ static_resources:
4848
- name: echo_service
4949
connect_timeout: 0.25s
5050
type: logical_dns
51-
http2_protocol_options: {}
51+
# HTTP/2 support
52+
typed_extension_protocol_options:
53+
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
54+
"@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
55+
explicit_http_config:
56+
http2_protocol_options: {}
5257
lb_policy: round_robin
5358
load_assignment:
5459
cluster_name: cluster_0

net/grpc/gateway/examples/echo/tutorial.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ static_resources:
8383
- name: echo_service
8484
connect_timeout: 0.25s
8585
type: logical_dns
86-
http2_protocol_options: {}
86+
# HTTP/2 support
87+
typed_extension_protocol_options:
88+
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
89+
"@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
90+
explicit_http_config:
91+
http2_protocol_options: {}
8792
lb_policy: round_robin
8893
load_assignment:
8994
cluster_name: cluster_0

net/grpc/gateway/examples/helloworld/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,12 @@ static_resources:
137137
- name: greeter_service
138138
connect_timeout: 0.25s
139139
type: logical_dns
140-
http2_protocol_options: {}
140+
# HTTP/2 support
141+
typed_extension_protocol_options:
142+
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
143+
"@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
144+
explicit_http_config:
145+
http2_protocol_options: {}
141146
lb_policy: round_robin
142147
load_assignment:
143148
cluster_name: cluster_0

net/grpc/gateway/examples/helloworld/envoy.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ static_resources:
4848
- name: greeter_service
4949
connect_timeout: 0.25s
5050
type: logical_dns
51-
http2_protocol_options: {}
51+
# HTTP/2 support
52+
typed_extension_protocol_options:
53+
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
54+
"@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
55+
explicit_http_config:
56+
http2_protocol_options: {}
5257
lb_policy: round_robin
5358
# win/mac hosts: Use address: host.docker.internal instead of address: localhost in the line below
5459
load_assignment:

test/interop/envoy.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ static_resources:
4848
- name: interop_service
4949
connect_timeout: 0.25s
5050
type: logical_dns
51-
http2_protocol_options: {}
51+
# HTTP/2 support
52+
typed_extension_protocol_options:
53+
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
54+
"@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
55+
explicit_http_config:
56+
http2_protocol_options: {}
5257
lb_policy: round_robin
5358
load_assignment:
5459
cluster_name: cluster_0

0 commit comments

Comments
 (0)