We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ab3da2 commit 110a273Copy full SHA for 110a273
packages/grpc-js-xds/src/xds-dependency-manager.ts
@@ -323,6 +323,9 @@ function getEdsResource(edsUpdate: ClusterLoadAssignment__Output): EndpointResou
323
}
324
325
function getDnsResource(endpoints: Endpoint[]): EndpointResource {
326
+ const endpoint: Endpoint = {
327
+ addresses: endpoints.map(endpoint => endpoint.addresses).flat()
328
+ }
329
return {
330
priorities: [{
331
localities: [{
@@ -332,7 +335,7 @@ function getDnsResource(endpoints: Endpoint[]): EndpointResource {
332
335
sub_zone: ''
333
336
},
334
337
weight: 1,
- endpoints: endpoints.map(endpoint => ({endpoint: endpoint, weight: 1}))
338
+ endpoints: [{endpoint: endpoint, weight: 1}]
339
}]
340
}],
341
dropCategories: []
0 commit comments