-
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.
api-gateway: stop adding all header filters to virtual host when gene…
…rating xDS (#17644) * Add header filter to api-gateway xDS golden test * Stop adding all header filters to virtual host when generating xDS for api-gateway * Regenerate xDS golden file for api-gateway w/ header filter
- Loading branch information
1 parent
baaf6d8
commit 1074252
Showing
3 changed files
with
48 additions
and
28 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
51 changes: 35 additions & 16 deletions
51
agent/xds/testdata/routes/api-gateway-with-http-route-and-inline-certificate.latest.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 |
---|---|---|
@@ -1,31 +1,50 @@ | ||
{ | ||
"versionInfo": "00000001", | ||
"resources": [ | ||
"versionInfo": "00000001", | ||
"resources": [ | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration", | ||
"name": "8080", | ||
"virtualHosts": [ | ||
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration", | ||
"name": "8080", | ||
"virtualHosts": [ | ||
{ | ||
"name": "api-gateway-listener-9b9265b", | ||
"domains": [ | ||
"name": "api-gateway-listener-9b9265b", | ||
"domains": [ | ||
"*", | ||
"*:8080" | ||
], | ||
"routes": [ | ||
"routes": [ | ||
{ | ||
"match": { | ||
"prefix": "/" | ||
"match": { | ||
"prefix": "/" | ||
}, | ||
"route": { | ||
"cluster": "service.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul" | ||
} | ||
"route": { | ||
"cluster": "service.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul" | ||
}, | ||
"requestHeadersToAdd": [ | ||
{ | ||
"header": { | ||
"key": "X-Header-Add", | ||
"value": "added" | ||
}, | ||
"append": true | ||
}, | ||
{ | ||
"header": { | ||
"key": "X-Header-Set", | ||
"value": "set" | ||
}, | ||
"append": false | ||
} | ||
], | ||
"requestHeadersToRemove": [ | ||
"X-Header-Remove" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"validateClusters": true | ||
"validateClusters": true | ||
} | ||
], | ||
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration", | ||
"nonce": "00000001" | ||
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration", | ||
"nonce": "00000001" | ||
} |