Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
  • Loading branch information
zhaohuabing committed Nov 14, 2023
1 parent f88929c commit c3f433d
Show file tree
Hide file tree
Showing 56 changed files with 98 additions and 98 deletions.
2 changes: 1 addition & 1 deletion internal/xds/translator/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func buildXdsClusterLoadAssignment(clusterName string, destSettings []*ir.Destin
// We use the name of the backendRef as a pseudo region name.
locality := &endpointv3.LocalityLbEndpoints{
Locality: &corev3.Locality{
Region: fmt.Sprintf("%s/setting/%d", clusterName, i),
Region: fmt.Sprintf("%s/backend/%d", clusterName, i),
},
LbEndpoints: endpoints,
Priority: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: accesslog|otel-collector.default.svc.cluster.local|4317/setting/0
region: accesslog|otel-collector.default.svc.cluster.local|4317/backend/0
name: accesslog|otel-collector.default.svc.cluster.local|4317
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: direct-route-dest/setting/0
region: direct-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: direct-route-dest/setting/0
region: direct-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: route-dest/setting/0
region: route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
- clusterName: second-route-dest
endpoints:
- lbEndpoints:
Expand All @@ -21,7 +21,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: second-route-dest/setting/0
region: second-route-dest/backend/0
- clusterName: third-route-dest
endpoints:
- lbEndpoints:
Expand All @@ -33,7 +33,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: third-route-dest/setting/0
region: third-route-dest/backend/0
- clusterName: fourth-route-dest
endpoints:
- lbEndpoints:
Expand All @@ -45,7 +45,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: fourth-route-dest/setting/0
region: fourth-route-dest/backend/0
- clusterName: fifth-route-dest
endpoints:
- lbEndpoints:
Expand All @@ -57,7 +57,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: fifth-route-dest/setting/0
region: fifth-route-dest/backend/0
- clusterName: sixth-route-dest
endpoints:
- lbEndpoints:
Expand All @@ -69,7 +69,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: sixth-route-dest/setting/0
region: sixth-route-dest/backend/0
- clusterName: seventh-route-dest
endpoints:
- lbEndpoints:
Expand All @@ -81,4 +81,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: seventh-route-dest/setting/0
region: seventh-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: route-dest/setting/0
region: route-dest/backend/0
- clusterName: mirror-route-dest
endpoints:
- lbEndpoints:
Expand All @@ -21,7 +21,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: mirror-route-dest/setting/0
region: mirror-route-dest/backend/0
- clusterName: mirror-route-dest1
endpoints:
- lbEndpoints:
Expand All @@ -33,4 +33,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: mirror-route-dest1/setting/0
region: mirror-route-dest1/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: redirect-route-dest/setting/0
region: redirect-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: regex-route-dest/setting/0
region: regex-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: request-header-route-dest/setting/0
region: request-header-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: response-header-route-dest/setting/0
region: response-header-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: response-header-route-dest/setting/0
region: response-header-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: response-header-route-dest/setting/0
region: response-header-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: rewrite-route-dest/setting/0
region: rewrite-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: rewrite-route/setting/0
region: rewrite-route/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: rewrite-route-dest/setting/0
region: rewrite-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: rewrite-route-dest/setting/0
region: rewrite-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 20
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
- lbEndpoints:
- endpoint:
address:
Expand All @@ -19,7 +19,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 40
locality:
region: first-route-dest/setting/1
region: first-route-dest/backend/1
- lbEndpoints:
- endpoint:
address:
Expand All @@ -29,7 +29,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 20
locality:
region: first-route-dest/setting/2
region: first-route-dest/backend/2
- lbEndpoints:
- endpoint:
address:
Expand All @@ -39,4 +39,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 20
locality:
region: first-route-dest/setting/3
region: first-route-dest/backend/3
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 50
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: localhost_443/setting/0
region: localhost_443/backend/0
name: localhost_443
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-www.test.com-dest/setting/0
region: first-route-www.test.com-dest/backend/0
- clusterName: second-route-www.test.com-dest
endpoints:
- lbEndpoints:
Expand All @@ -21,7 +21,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: second-route-www.test.com-dest/setting/0
region: second-route-www.test.com-dest/backend/0
- clusterName: "192_168_1_250_8080"
endpoints:
- lbEndpoints:
Expand All @@ -33,4 +33,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: 192_168_1_250_8080/setting/0
region: 192_168_1_250_8080/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: localhost_443/setting/0
region: localhost_443/backend/0
name: localhost_443
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
- clusterName: second-route-dest
endpoints:
- lbEndpoints:
Expand All @@ -21,4 +21,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: second-route-dest/setting/0
region: second-route-dest/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: ratelimit_cluster/setting/0
region: ratelimit_cluster/backend/0
name: ratelimit_cluster
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
- clusterName: second-route-dest
endpoints:
- lbEndpoints:
Expand All @@ -21,7 +21,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: second-route-dest/setting/0
region: second-route-dest/backend/0
- clusterName: third-route-dest
endpoints:
- lbEndpoints:
Expand All @@ -33,7 +33,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: third-route-dest/setting/0
region: third-route-dest/backend/0
- clusterName: "192_168_1_250_443"
endpoints:
- lbEndpoints:
Expand All @@ -45,4 +45,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: 192_168_1_250_443/setting/0
region: 192_168_1_250_443/backend/0
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: localhost_443/setting/0
region: localhost_443/backend/0
name: localhost_443
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/setting/0
region: first-route-dest/backend/0
Loading

0 comments on commit c3f433d

Please sign in to comment.