-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xDS Mesh Gateway Resolver Subset Fixes (#7294)
* xDS Mesh Gateway Resolver Subset Fixes The first fix was that clusters were being generated for every service resolver subset regardless of there being any service instances of the associated service in that dc. The previous logic didn’t care at all but now it will omit generating those clusters unless we also have service instances that should be proxied. The second fix was to respect the DefaultSubset of a service resolver so that mesh-gateways would configure the endpoints of the unnamed subset cluster to only those endpoints matched by the default subsets filters. * Refactor the gateway endpoint generation to be a little easier to read
- Loading branch information
Showing
7 changed files
with
449 additions
and
43 deletions.
There are no files selected for viewing
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
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
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
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
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
87 changes: 87 additions & 0 deletions
87
agent/xds/testdata/clusters/mesh-gateway-ignore-extra-resolvers.golden
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,87 @@ | ||
{ | ||
"versionInfo": "00000001", | ||
"resources": [ | ||
{ | ||
"@type": "type.googleapis.com/envoy.api.v2.Cluster", | ||
"name": "bar.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "EDS", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": { | ||
|
||
} | ||
} | ||
}, | ||
"connectTimeout": "5s", | ||
"outlierDetection": { | ||
|
||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.api.v2.Cluster", | ||
"name": "dc2.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "EDS", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": { | ||
|
||
} | ||
} | ||
}, | ||
"connectTimeout": "5s", | ||
"outlierDetection": { | ||
|
||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.api.v2.Cluster", | ||
"name": "foo.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "EDS", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": { | ||
|
||
} | ||
} | ||
}, | ||
"connectTimeout": "5s", | ||
"outlierDetection": { | ||
|
||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.api.v2.Cluster", | ||
"name": "v1.bar.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "EDS", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": { | ||
|
||
} | ||
} | ||
}, | ||
"connectTimeout": "5s", | ||
"outlierDetection": { | ||
|
||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.api.v2.Cluster", | ||
"name": "v2.bar.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "EDS", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": { | ||
|
||
} | ||
} | ||
}, | ||
"connectTimeout": "5s", | ||
"outlierDetection": { | ||
|
||
} | ||
} | ||
], | ||
"typeUrl": "type.googleapis.com/envoy.api.v2.Cluster", | ||
"nonce": "00000001" | ||
} |
Oops, something went wrong.