Skip to content

Commit

Permalink
chore:fix http2_protocol_options warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaonan committed Oct 31, 2023
1 parent 046a593 commit 21d202d
Show file tree
Hide file tree
Showing 21 changed files with 88 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,12 @@ envoyProxy:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions"
explicit_http_config:
http2_protocol_options: {}
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down Expand Up @@ -510,10 +509,6 @@ xds:
name: prometheus_stats
type: STATIC
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down Expand Up @@ -550,7 +545,10 @@ xds:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
'@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
explicitHttpConfig:
http2ProtocolOptions: {}
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
listeners:
- address:
socketAddress:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ xds:
name: prometheus_stats
type: STATIC
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down Expand Up @@ -82,7 +78,10 @@ xds:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
'@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
explicitHttpConfig:
http2ProtocolOptions: {}
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
listeners:
- address:
socketAddress:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@
},
{
"connectTimeout": "10s",
"http2ProtocolOptions": {
"connectionKeepalive": {
"interval": "30s",
"timeout": "5s"
}
},
"loadAssignment": {
"clusterName": "xds_cluster",
"endpoints": [
Expand Down Expand Up @@ -136,7 +130,12 @@
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
"explicitHttpConfig": {
"http2ProtocolOptions": {}
"http2ProtocolOptions": {
"connectionKeepalive": {
"interval": "30s",
"timeout": "5s"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ xds:
name: prometheus_stats
type: STATIC
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down Expand Up @@ -82,7 +78,10 @@ xds:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
'@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
explicitHttpConfig:
http2ProtocolOptions: {}
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
listeners:
- address:
socketAddress:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ xds:
name: prometheus_stats
type: STATIC
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down Expand Up @@ -81,7 +77,10 @@ xds:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
'@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
explicitHttpConfig:
http2ProtocolOptions: {}
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
listeners:
- address:
socketAddress:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@
},
{
"connectTimeout": "10s",
"http2ProtocolOptions": {
"connectionKeepalive": {
"interval": "30s",
"timeout": "5s"
}
},
"loadAssignment": {
"clusterName": "xds_cluster",
"endpoints": [
Expand Down Expand Up @@ -136,7 +130,12 @@
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
"explicitHttpConfig": {
"http2ProtocolOptions": {}
"http2ProtocolOptions": {
"connectionKeepalive": {
"interval": "30s",
"timeout": "5s"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ xds:
name: prometheus_stats
type: STATIC
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down Expand Up @@ -82,7 +78,10 @@ xds:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
'@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
explicitHttpConfig:
http2ProtocolOptions: {}
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
listeners:
- address:
socketAddress:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ xds:
name: prometheus_stats
type: STATIC
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down Expand Up @@ -81,7 +77,10 @@ xds:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
'@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
explicitHttpConfig:
http2ProtocolOptions: {}
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
listeners:
- address:
socketAddress:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,12 @@ spec:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions"
explicit_http_config:
http2_protocol_options: {}
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,12 @@ spec:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions"
explicit_http_config:
http2_protocol_options: {}
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,12 @@ spec:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions"
explicit_http_config:
http2_protocol_options: {}
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,12 @@ spec:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions"
explicit_http_config:
http2_protocol_options: {}
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,12 @@ spec:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions"
explicit_http_config:
http2_protocol_options: {}
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,12 @@ spec:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions"
explicit_http_config:
http2_protocol_options: {}
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,12 @@ spec:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions"
explicit_http_config:
http2_protocol_options: {}
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down
9 changes: 4 additions & 5 deletions internal/xds/bootstrap/bootstrap.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,12 @@ static_resources:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions"
explicit_http_config:
http2_protocol_options: {}
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down
9 changes: 4 additions & 5 deletions internal/xds/bootstrap/testdata/custom-stats-matcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,12 @@ static_resources:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions"
explicit_http_config:
http2_protocol_options: {}
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down
9 changes: 4 additions & 5 deletions internal/xds/bootstrap/testdata/disable-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@ static_resources:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions"
explicit_http_config:
http2_protocol_options: {}
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down
Loading

0 comments on commit 21d202d

Please sign in to comment.