Skip to content

Commit 4073bfa

Browse files
committed
update test file
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
1 parent 49cb214 commit 4073bfa

5 files changed

+101
-26
lines changed

internal/xds/translator/testdata/in/xds-ir/listener-overlapping-tls-config.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,22 @@ http:
5858
port: 10443
5959
routes:
6060
- destination:
61-
name: httproute/envoy-gateway/httproute-1/rule/0
61+
name: httproute/envoy-gateway/httproute-2/rule/0
6262
settings:
6363
- addressType: IP
6464
endpoints:
6565
- host: 7.7.7.7
6666
port: 8080
67-
name: httproute/envoy-gateway/httproute-1/rule/0/backend/0
67+
name: httproute/envoy-gateway/httproute-2/rule/0/backend/0
6868
protocol: HTTP
6969
weight: 1
7070
hostname: '*.example.com'
7171
isHTTP2: false
7272
metadata:
7373
kind: HTTPRoute
74-
name: httproute-1
74+
name: httproute-2
7575
namespace: envoy-gateway
76-
name: httproute/envoy-gateway/httproute-1/rule/0/match/0/*_example_com
76+
name: httproute/envoy-gateway/httproute-2/rule/0/match/0/*_example_com
7777
pathMatch:
7878
distinct: false
7979
name: ""
@@ -93,30 +93,30 @@ http:
9393
kind: Gateway
9494
name: gateway-1
9595
namespace: envoy-gateway
96-
sectionName: https-1
97-
name: envoy-gateway/gateway-1/https-1
96+
sectionName: https-3
97+
name: envoy-gateway/gateway-1/https-3
9898
path:
9999
escapedSlashesAction: UnescapeAndRedirect
100100
mergeSlashes: true
101101
port: 8443
102102
routes:
103103
- destination:
104-
name: httproute/envoy-gateway/httproute-1/rule/0
104+
name: httproute/envoy-gateway/httproute-3/rule/0
105105
settings:
106106
- addressType: IP
107107
endpoints:
108108
- host: 7.7.7.7
109109
port: 8080
110-
name: httproute/envoy-gateway/httproute-1/rule/0/backend/0
110+
name: httproute/envoy-gateway/httproute-3/rule/0/backend/0
111111
protocol: HTTP
112112
weight: 1
113113
hostname: foo.example.com
114114
isHTTP2: false
115115
metadata:
116116
kind: HTTPRoute
117-
name: httproute-1
117+
name: httproute-3
118118
namespace: envoy-gateway
119-
name: httproute/envoy-gateway/httproute-1/rule/0/match/0/foo_example_com
119+
name: httproute/envoy-gateway/httproute-3/rule/0/match/0/foo_example_com
120120
pathMatch:
121121
distinct: false
122122
name: ""

internal/xds/translator/testdata/out/xds-ir/listener-overlapping-tls-config.clusters.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,51 @@
2222
name: httproute/envoy-gateway/httproute-1/rule/0
2323
perConnectionBufferLimitBytes: 32768
2424
type: EDS
25+
- circuitBreakers:
26+
thresholds:
27+
- maxRetries: 1024
28+
commonLbConfig: {}
29+
connectTimeout: 10s
30+
dnsLookupFamily: V4_PREFERRED
31+
edsClusterConfig:
32+
edsConfig:
33+
ads: {}
34+
resourceApiVersion: V3
35+
serviceName: httproute/envoy-gateway/httproute-2/rule/0
36+
ignoreHealthOnHostRemoval: true
37+
lbPolicy: LEAST_REQUEST
38+
loadBalancingPolicy:
39+
policies:
40+
- typedExtensionConfig:
41+
name: envoy.load_balancing_policies.least_request
42+
typedConfig:
43+
'@type': type.googleapis.com/envoy.extensions.load_balancing_policies.least_request.v3.LeastRequest
44+
localityLbConfig:
45+
localityWeightedLbConfig: {}
46+
name: httproute/envoy-gateway/httproute-2/rule/0
47+
perConnectionBufferLimitBytes: 32768
48+
type: EDS
49+
- circuitBreakers:
50+
thresholds:
51+
- maxRetries: 1024
52+
commonLbConfig: {}
53+
connectTimeout: 10s
54+
dnsLookupFamily: V4_PREFERRED
55+
edsClusterConfig:
56+
edsConfig:
57+
ads: {}
58+
resourceApiVersion: V3
59+
serviceName: httproute/envoy-gateway/httproute-3/rule/0
60+
ignoreHealthOnHostRemoval: true
61+
lbPolicy: LEAST_REQUEST
62+
loadBalancingPolicy:
63+
policies:
64+
- typedExtensionConfig:
65+
name: envoy.load_balancing_policies.least_request
66+
typedConfig:
67+
'@type': type.googleapis.com/envoy.extensions.load_balancing_policies.least_request.v3.LeastRequest
68+
localityLbConfig:
69+
localityWeightedLbConfig: {}
70+
name: httproute/envoy-gateway/httproute-3/rule/0
71+
perConnectionBufferLimitBytes: 32768
72+
type: EDS

internal/xds/translator/testdata/out/xds-ir/listener-overlapping-tls-config.endpoints.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,27 @@
1010
loadBalancingWeight: 1
1111
locality:
1212
region: httproute/envoy-gateway/httproute-1/rule/0/backend/0
13+
- clusterName: httproute/envoy-gateway/httproute-2/rule/0
14+
endpoints:
15+
- lbEndpoints:
16+
- endpoint:
17+
address:
18+
socketAddress:
19+
address: 7.7.7.7
20+
portValue: 8080
21+
loadBalancingWeight: 1
22+
loadBalancingWeight: 1
23+
locality:
24+
region: httproute/envoy-gateway/httproute-2/rule/0/backend/0
25+
- clusterName: httproute/envoy-gateway/httproute-3/rule/0
26+
endpoints:
27+
- lbEndpoints:
28+
- endpoint:
29+
address:
30+
socketAddress:
31+
address: 7.7.7.7
32+
portValue: 8080
33+
loadBalancingWeight: 1
34+
loadBalancingWeight: 1
35+
locality:
36+
region: httproute/envoy-gateway/httproute-3/rule/0/backend/0

internal/xds/translator/testdata/out/xds-ir/listener-overlapping-tls-config.listeners.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@
128128
configSource:
129129
ads: {}
130130
resourceApiVersion: V3
131-
routeConfigName: envoy-gateway/gateway-1/https-1
131+
routeConfigName: envoy-gateway/gateway-1/https-3
132132
serverHeaderTransformation: PASS_THROUGH
133133
statPrefix: https-8443
134134
useRemoteAddress: true
135-
name: envoy-gateway/gateway-1/https-1
135+
name: envoy-gateway/gateway-1/https-3
136136
transportSocket:
137137
name: envoy.transport_sockets.tls
138138
typedConfig:
@@ -152,5 +152,5 @@
152152
typedConfig:
153153
'@type': type.googleapis.com/envoy.extensions.filters.listener.tls_inspector.v3.TlsInspector
154154
maxConnectionsToAcceptPerSocketEvent: 1
155-
name: envoy-gateway/gateway-1/https-1
155+
name: envoy-gateway/gateway-1/https-3
156156
perConnectionBufferLimitBytes: 32768

internal/xds/translator/testdata/out/xds-ir/listener-overlapping-tls-config.routes.yaml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,20 @@
2727
cluster: httproute/envoy-gateway/httproute-1/rule/0
2828
upgradeConfigs:
2929
- upgradeType: websocket
30+
- ignorePortInHostMatching: true
31+
name: envoy-gateway/gateway-1/https-2
32+
virtualHosts:
3033
- domains:
31-
- foo.example.com
34+
- '*.example.com'
3235
metadata:
3336
filterMetadata:
3437
envoy-gateway:
3538
resources:
3639
- kind: Gateway
3740
name: gateway-1
3841
namespace: envoy-gateway
39-
sectionName: https-1
40-
name: envoy-gateway/gateway-1/https-1/foo_example_com
42+
sectionName: https-2
43+
name: envoy-gateway/gateway-1/https-2/*_example_com
4144
routes:
4245
- match:
4346
prefix: /
@@ -46,27 +49,27 @@
4649
envoy-gateway:
4750
resources:
4851
- kind: HTTPRoute
49-
name: httproute-1
52+
name: httproute-2
5053
namespace: envoy-gateway
51-
name: httproute/envoy-gateway/httproute-1/rule/0/match/0/foo_example_com
54+
name: httproute/envoy-gateway/httproute-2/rule/0/match/0/*_example_com
5255
route:
53-
cluster: httproute/envoy-gateway/httproute-1/rule/0
56+
cluster: httproute/envoy-gateway/httproute-2/rule/0
5457
upgradeConfigs:
5558
- upgradeType: websocket
5659
- ignorePortInHostMatching: true
57-
name: envoy-gateway/gateway-1/https-2
60+
name: envoy-gateway/gateway-1/https-3
5861
virtualHosts:
5962
- domains:
60-
- '*.example.com'
63+
- foo.example.com
6164
metadata:
6265
filterMetadata:
6366
envoy-gateway:
6467
resources:
6568
- kind: Gateway
6669
name: gateway-1
6770
namespace: envoy-gateway
68-
sectionName: https-2
69-
name: envoy-gateway/gateway-1/https-2/*_example_com
71+
sectionName: https-3
72+
name: envoy-gateway/gateway-1/https-3/foo_example_com
7073
routes:
7174
- match:
7275
prefix: /
@@ -75,10 +78,10 @@
7578
envoy-gateway:
7679
resources:
7780
- kind: HTTPRoute
78-
name: httproute-1
81+
name: httproute-3
7982
namespace: envoy-gateway
80-
name: httproute/envoy-gateway/httproute-1/rule/0/match/0/*_example_com
83+
name: httproute/envoy-gateway/httproute-3/rule/0/match/0/foo_example_com
8184
route:
82-
cluster: httproute/envoy-gateway/httproute-1/rule/0
85+
cluster: httproute/envoy-gateway/httproute-3/rule/0
8386
upgradeConfigs:
8487
- upgradeType: websocket

0 commit comments

Comments
 (0)