Skip to content

Commit a785be8

Browse files
authored
EndpointSlice to IR Route Destinations (#1494)
* EndpointSlice to IR Route Destinations Relates to #1256 Signed-off-by: Arko Dasgupta <[email protected]> * assign backend weight to locality weight add another level of indirection in RouteDestination called DestinationSetting Signed-off-by: Arko Dasgupta <[email protected]>
1 parent c70144b commit a785be8

File tree

256 files changed

+2006
-1165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+2006
-1165
lines changed

api/config/v1alpha1/validation/testdata/valid-user-bootstrap.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ staticResources:
3636
loadAssignment:
3737
clusterName: xds_cluster
3838
endpoints:
39-
- lbEndpoints:
40-
- endpoint:
39+
- loadBalancingWeight: 1
40+
lbEndpoints:
41+
- loadBalancingWeight: 1
42+
endpoint:
4143
address:
4244
socketAddress:
4345
address: envoy-gateway

internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.all.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@
8181
"portValue": 18000
8282
}
8383
}
84-
}
84+
},
85+
"loadBalancingWeight": 1
8586
}
86-
]
87+
],
88+
"loadBalancingWeight": 1
8789
}
8890
]
8991
},
@@ -261,7 +263,8 @@
261263
"portValue": 443
262264
}
263265
}
264-
}
266+
},
267+
"loadBalancingWeight": 1
265268
}
266269
],
267270
"loadBalancingWeight": 1,

internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.all.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ xds:
5151
socketAddress:
5252
address: envoy-gateway
5353
portValue: 18000
54+
loadBalancingWeight: 1
55+
loadBalancingWeight: 1
5456
name: xds_cluster
5557
transportSocket:
5658
name: envoy.transport_sockets.tls
@@ -153,6 +155,7 @@ xds:
153155
socketAddress:
154156
address: raw.githubusercontent.com
155157
portValue: 443
158+
loadBalancingWeight: 1
156159
loadBalancingWeight: 1
157160
locality: {}
158161
name: raw_githubusercontent_com_443

internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.bootstrap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ xds:
5050
socketAddress:
5151
address: envoy-gateway
5252
portValue: 18000
53+
loadBalancingWeight: 1
54+
loadBalancingWeight: 1
5355
name: xds_cluster
5456
transportSocket:
5557
name: envoy.transport_sockets.tls

internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.cluster.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ xds:
3535
socketAddress:
3636
address: raw.githubusercontent.com
3737
portValue: 443
38+
loadBalancingWeight: 1
3839
loadBalancingWeight: 1
3940
locality: {}
4041
name: raw_githubusercontent_com_443

internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ envoyProxy:
6464
load_assignment:
6565
cluster_name: xds_cluster
6666
endpoints:
67-
- lb_endpoints:
68-
- endpoint:
67+
- load_balancing_weight: 1
68+
lb_endpoints:
69+
- load_balancing_weight: 1
70+
endpoint:
6971
address:
7072
socket_address:
7173
address: envoy-gateway
@@ -479,6 +481,8 @@ xds:
479481
socketAddress:
480482
address: envoy-gateway
481483
portValue: 18000
484+
loadBalancingWeight: 1
485+
loadBalancingWeight: 1
482486
name: xds_cluster
483487
transportSocket:
484488
name: envoy.transport_sockets.tls
@@ -582,6 +586,7 @@ xds:
582586
socketAddress:
583587
address: 127.0.0.1
584588
portValue: 3000
589+
loadBalancingWeight: 1
585590
loadBalancingWeight: 1
586591
locality: {}
587592
- endpointConfig:
@@ -594,6 +599,7 @@ xds:
594599
socketAddress:
595600
address: 127.0.0.1
596601
portValue: 3000
602+
loadBalancingWeight: 1
597603
loadBalancingWeight: 1
598604
locality: {}
599605
- '@type': type.googleapis.com/envoy.admin.v3.ClustersConfigDump

internal/cmd/egctl/testdata/translate/out/envoy-patch-policy.all.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ xds:
5151
socketAddress:
5252
address: envoy-gateway
5353
portValue: 18000
54+
loadBalancingWeight: 1
55+
loadBalancingWeight: 1
5456
name: xds_cluster
5557
transportSocket:
5658
name: envoy.transport_sockets.tls

internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@
8181
"portValue": 18000
8282
}
8383
}
84-
}
84+
},
85+
"loadBalancingWeight": 1
8586
}
86-
]
87+
],
88+
"loadBalancingWeight": 1
8789
}
8890
]
8991
},
@@ -276,7 +278,8 @@
276278
"portValue": 3000
277279
}
278280
}
279-
}
281+
},
282+
"loadBalancingWeight": 1
280283
}
281284
],
282285
"loadBalancingWeight": 1,
@@ -300,7 +303,8 @@
300303
"portValue": 3000
301304
}
302305
}
303-
}
306+
},
307+
"loadBalancingWeight": 1
304308
}
305309
],
306310
"loadBalancingWeight": 1,

internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ xds:
5151
socketAddress:
5252
address: envoy-gateway
5353
portValue: 18000
54+
loadBalancingWeight: 1
55+
loadBalancingWeight: 1
5456
name: xds_cluster
5557
transportSocket:
5658
name: envoy.transport_sockets.tls
@@ -154,6 +156,7 @@ xds:
154156
socketAddress:
155157
address: 1.1.1.1
156158
portValue: 3000
159+
loadBalancingWeight: 1
157160
loadBalancingWeight: 1
158161
locality: {}
159162
- endpointConfig:
@@ -166,6 +169,7 @@ xds:
166169
socketAddress:
167170
address: 1.1.1.1
168171
portValue: 3000
172+
loadBalancingWeight: 1
169173
loadBalancingWeight: 1
170174
locality: {}
171175
- '@type': type.googleapis.com/envoy.admin.v3.ClustersConfigDump

internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.bootstrap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ xds:
5050
socketAddress:
5151
address: envoy-gateway
5252
portValue: 18000
53+
loadBalancingWeight: 1
54+
loadBalancingWeight: 1
5355
name: xds_cluster
5456
transportSocket:
5557
name: envoy.transport_sockets.tls

0 commit comments

Comments
 (0)