-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Luv <[email protected]>
- Loading branch information
Showing
15 changed files
with
197 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
internal/xds/translator/testdata/in/xds-ir/http-req-resp-sizes-stats.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "metrics-req-resp-sizes-stats" | ||
metrics: | ||
enableRequestResponseSizesStats: true | ||
http: | ||
- name: "listener-enable-req-resp-sizes-stats" | ||
address: "0.0.0.0" | ||
port: 10080 | ||
hostnames: | ||
- "*" | ||
path: | ||
mergeSlashes: true | ||
escapedSlashesAction: UnescapeAndRedirect | ||
routes: | ||
- name: "first-route" | ||
hostname: "*" | ||
destination: | ||
name: "first-route-dest" | ||
settings: | ||
- endpoints: | ||
- host: "1.2.3.4" | ||
port: 50000 |
15 changes: 15 additions & 0 deletions
15
internal/xds/translator/testdata/in/xds-ir/tcp-req-resp-sizes-stats.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "metrics-req-resp-sizes-stats" | ||
metrics: | ||
enableRequestResponseSizesStats: true | ||
tcp: | ||
- name: "tcp-route-enable-req-resp-sizes-stats" | ||
address: "0.0.0.0" | ||
port: 10080 | ||
destination: | ||
name: "tcp-route-simple-dest" | ||
settings: | ||
- endpoints: | ||
- host: "1.2.3.4" | ||
port: 50000 | ||
- host: "5.6.7.8" | ||
port: 50001 |
17 changes: 17 additions & 0 deletions
17
internal/xds/translator/testdata/in/xds-ir/udp-req-resp-sizes-stats.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: "metrics-req-resp-sizes-stats" | ||
metrics: | ||
enableRequestResponseSizesStats: true | ||
udp: | ||
- name: "udp-route-enable-req-resp-sizes-stats" | ||
address: "0.0.0.0" | ||
port: 10080 | ||
route: | ||
name: "udp-route" | ||
destination: | ||
name: "udp-route-dest" | ||
settings: | ||
- endpoints: | ||
- host: "1.2.3.4" | ||
port: 50000 | ||
- host: "5.6.7.8" | ||
port: 50001 |
19 changes: 19 additions & 0 deletions
19
internal/xds/translator/testdata/out/xds-ir/http-req-resp-sizes-stats.clusters.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
- circuitBreakers: | ||
thresholds: | ||
- maxRetries: 1024 | ||
commonLbConfig: | ||
localityWeightedLbConfig: {} | ||
connectTimeout: 10s | ||
dnsLookupFamily: V4_ONLY | ||
edsClusterConfig: | ||
edsConfig: | ||
ads: {} | ||
resourceApiVersion: V3 | ||
serviceName: first-route-dest | ||
lbPolicy: LEAST_REQUEST | ||
name: first-route-dest | ||
outlierDetection: {} | ||
perConnectionBufferLimitBytes: 32768 | ||
trackClusterStats: | ||
requestResponseSizes: true | ||
type: EDS |
12 changes: 12 additions & 0 deletions
12
internal/xds/translator/testdata/out/xds-ir/http-req-resp-sizes-stats.endpoints.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- clusterName: first-route-dest | ||
endpoints: | ||
- lbEndpoints: | ||
- endpoint: | ||
address: | ||
socketAddress: | ||
address: 1.2.3.4 | ||
portValue: 50000 | ||
loadBalancingWeight: 1 | ||
loadBalancingWeight: 1 | ||
locality: | ||
region: first-route-dest/backend/0 |
34 changes: 34 additions & 0 deletions
34
internal/xds/translator/testdata/out/xds-ir/http-req-resp-sizes-stats.listeners.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
- address: | ||
socketAddress: | ||
address: 0.0.0.0 | ||
portValue: 10080 | ||
defaultFilterChain: | ||
filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
commonHttpProtocolOptions: | ||
headersWithUnderscoresAction: REJECT_REQUEST | ||
http2ProtocolOptions: | ||
initialConnectionWindowSize: 1048576 | ||
initialStreamWindowSize: 65536 | ||
maxConcurrentStreams: 100 | ||
httpFilters: | ||
- name: envoy.filters.http.router | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
suppressEnvoyHeaders: true | ||
mergeSlashes: true | ||
normalizePath: true | ||
pathWithEscapedSlashesAction: UNESCAPE_AND_REDIRECT | ||
rds: | ||
configSource: | ||
ads: {} | ||
resourceApiVersion: V3 | ||
routeConfigName: listener-enable-req-resp-sizes-stats | ||
serverHeaderTransformation: PASS_THROUGH | ||
statPrefix: http-10080 | ||
useRemoteAddress: true | ||
name: listener-enable-req-resp-sizes-stats | ||
name: listener-enable-req-resp-sizes-stats | ||
perConnectionBufferLimitBytes: 32768 |
14 changes: 14 additions & 0 deletions
14
internal/xds/translator/testdata/out/xds-ir/http-req-resp-sizes-stats.routes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- ignorePortInHostMatching: true | ||
name: listener-enable-req-resp-sizes-stats | ||
virtualHosts: | ||
- domains: | ||
- '*' | ||
name: listener-enable-req-resp-sizes-stats/* | ||
routes: | ||
- match: | ||
prefix: / | ||
name: first-route | ||
route: | ||
cluster: first-route-dest | ||
upgradeConfigs: | ||
- upgradeType: websocket |
1 change: 1 addition & 0 deletions
1
internal/xds/translator/testdata/out/xds-ir/tcp-req-resp-sizes-stats.clusters.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
internal/xds/translator/testdata/out/xds-ir/tcp-req-resp-sizes-stats.endpoints.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
6 changes: 6 additions & 0 deletions
6
internal/xds/translator/testdata/out/xds-ir/tcp-req-resp-sizes-stats.listeners.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- address: | ||
socketAddress: | ||
address: 0.0.0.0 | ||
portValue: 10080 | ||
name: tcp-route-enable-req-resp-sizes-stats | ||
perConnectionBufferLimitBytes: 32768 |
1 change: 1 addition & 0 deletions
1
internal/xds/translator/testdata/out/xds-ir/tcp-req-resp-sizes-stats.routes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
19 changes: 19 additions & 0 deletions
19
internal/xds/translator/testdata/out/xds-ir/udp-req-resp-sizes-stats.clusters.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
- circuitBreakers: | ||
thresholds: | ||
- maxRetries: 1024 | ||
commonLbConfig: | ||
localityWeightedLbConfig: {} | ||
connectTimeout: 10s | ||
dnsLookupFamily: V4_ONLY | ||
edsClusterConfig: | ||
edsConfig: | ||
ads: {} | ||
resourceApiVersion: V3 | ||
serviceName: udp-route-dest | ||
lbPolicy: LEAST_REQUEST | ||
name: udp-route-dest | ||
outlierDetection: {} | ||
perConnectionBufferLimitBytes: 32768 | ||
trackClusterStats: | ||
requestResponseSizes: true | ||
type: EDS |
18 changes: 18 additions & 0 deletions
18
internal/xds/translator/testdata/out/xds-ir/udp-req-resp-sizes-stats.endpoints.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- clusterName: udp-route-dest | ||
endpoints: | ||
- lbEndpoints: | ||
- endpoint: | ||
address: | ||
socketAddress: | ||
address: 1.2.3.4 | ||
portValue: 50000 | ||
loadBalancingWeight: 1 | ||
- endpoint: | ||
address: | ||
socketAddress: | ||
address: 5.6.7.8 | ||
portValue: 50001 | ||
loadBalancingWeight: 1 | ||
loadBalancingWeight: 1 | ||
locality: | ||
region: udp-route-dest/backend/0 |
18 changes: 18 additions & 0 deletions
18
internal/xds/translator/testdata/out/xds-ir/udp-req-resp-sizes-stats.listeners.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- address: | ||
socketAddress: | ||
address: 0.0.0.0 | ||
portValue: 10080 | ||
protocol: UDP | ||
listenerFilters: | ||
- name: envoy.filters.udp_listener.udp_proxy | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig | ||
matcher: | ||
onNoMatch: | ||
action: | ||
name: route | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.udp.udp_proxy.v3.Route | ||
cluster: udp-route-dest | ||
statPrefix: service | ||
name: udp-route-enable-req-resp-sizes-stats |
1 change: 1 addition & 0 deletions
1
internal/xds/translator/testdata/out/xds-ir/udp-req-resp-sizes-stats.routes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |