-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
- Loading branch information
1 parent
92d8a12
commit e984aa4
Showing
7 changed files
with
178 additions
and
99 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
105 changes: 61 additions & 44 deletions
105
internal/xds/translator/testdata/in/xds-ir/http-route-weighted-backend-with-filters.yaml
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,45 +1,62 @@ | ||
http: | ||
- name: "first-listener" | ||
address: "0.0.0.0" | ||
port: 10080 | ||
hostnames: | ||
- "*" | ||
path: | ||
mergeSlashes: true | ||
escapedSlashesAction: UnescapeAndRedirect | ||
routes: | ||
- name: "first-route" | ||
backendWeights: | ||
invalid: 0 | ||
valid: 20 | ||
hostname: "*" | ||
destination: | ||
name: "first-route-dest" | ||
settings: | ||
- endpoints: | ||
- host: "1.1.1.1" | ||
port: 50001 | ||
weight: 20 | ||
filters: | ||
addRequestHeaders: | ||
- append: true | ||
name: add-header-1 | ||
value: some-value | ||
- append: true | ||
name: add-header-2 | ||
value: some-value | ||
- append: true | ||
name: add-header-3 | ||
value: some-value | ||
- endpoints: | ||
- host: "2.2.2.2" | ||
port: 50002 | ||
weight: 40 | ||
- endpoints: | ||
- host: "3.3.3.3" | ||
port: 50003 | ||
weight: 20 | ||
- endpoints: | ||
- host: "4.4.4.4" | ||
port: 50004 | ||
weight: 20 | ||
- name: "first-listener" | ||
address: "0.0.0.0" | ||
hostnames: | ||
- '*' | ||
path: | ||
escapedSlashesAction: UnescapeAndRedirect | ||
mergeSlashes: true | ||
port: 10080 | ||
routes: | ||
- backendWeights: | ||
invalid: 0 | ||
valid: 1 | ||
destination: | ||
name: "first-route-dest" | ||
settings: | ||
- addressType: IP | ||
endpoints: | ||
- host: 1.1.1.1 | ||
port: 8080 | ||
filters: | ||
addRequestHeaders: | ||
- append: false | ||
name: add-header-3 | ||
value: some-value | ||
protocol: HTTP | ||
weight: 1 | ||
hostname: '*' | ||
name: "first-route" | ||
pathMatch: | ||
prefix: /foo | ||
- backendWeights: | ||
invalid: 0 | ||
valid: 10 | ||
destination: | ||
name: "second-route-dest" | ||
settings: | ||
- addressType: IP | ||
Check failure on line 38 in internal/xds/translator/testdata/in/xds-ir/http-route-weighted-backend-with-filters.yaml GitHub Actions / lint
|
||
endpoints: | ||
- host: 2.2.2.2 | ||
Check failure on line 40 in internal/xds/translator/testdata/in/xds-ir/http-route-weighted-backend-with-filters.yaml GitHub Actions / lint
|
||
port: 8080 | ||
filters: | ||
addRequestHeaders: | ||
- append: true | ||
Check failure on line 44 in internal/xds/translator/testdata/in/xds-ir/http-route-weighted-backend-with-filters.yaml GitHub Actions / lint
|
||
name: add-header-1 | ||
value: some-value | ||
- append: true | ||
name: add-header-2 | ||
value: some-value | ||
protocol: HTTP | ||
weight: 8 | ||
- addressType: IP | ||
endpoints: | ||
- host: 3.3.3.3 | ||
Check failure on line 54 in internal/xds/translator/testdata/in/xds-ir/http-route-weighted-backend-with-filters.yaml GitHub Actions / lint
|
||
port: 8080 | ||
filters: {} | ||
protocol: HTTP | ||
weight: 2 | ||
hostname: '*' | ||
name: "second-route" | ||
pathMatch: | ||
prefix: / |
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
Oops, something went wrong.