-
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.
feat: Multiple RequestMirrors Filters per HTTPRoute Rule (#1819)
* initial code change draft coding Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com> * update test cases Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com> * update mirror to mirrors Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com> * update test file Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com> * fix conformance test Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com> * update gatewayapi testdata Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com> * address review comments Signed-off-by: Ronnie-personal <76408835+Ronnie-personal@users.noreply.github.com> * update mirror to mirrors Signed-off-by: Ronnie-personal <76408835+Ronnie-personal@users.noreply.github.com> * Mirror to Mirrors Signed-off-by: Ronnie-personal <76408835+Ronnie-personal@users.noreply.github.com> * add conformance test back Signed-off-by: Ronnie-personal <76408835+Ronnie-personal@users.noreply.github.com> --------- Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com> Signed-off-by: Ronnie-personal <76408835+Ronnie-personal@users.noreply.github.com> Co-authored-by: zirain <zirain2009@gmail.com>
- Loading branch information
1 parent
1f08e46
commit 14a395a
Showing
22 changed files
with
252 additions
and
103 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
22 changes: 22 additions & 0 deletions
22
internal/xds/translator/testdata/in/xds-ir/http-route-multiple-mirrors.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "http-route" | ||
http: | ||
- name: "first-listener" | ||
address: "0.0.0.0" | ||
port: 10080 | ||
hostnames: | ||
- "*" | ||
routes: | ||
- name: "mirror-route" | ||
hostname: "*" | ||
destination: | ||
name: "route-dest" | ||
endpoints: | ||
- host: "1.2.3.4" | ||
port: 50000 | ||
mirrors: | ||
- name: "mirror-route-dest" | ||
endpoints: | ||
- host: "2.3.4.5" | ||
- name: "mirror-route-dest1" | ||
endpoints: | ||
- host: "3.4.5.6" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,3 @@ | |
name: mirror-route | ||
route: | ||
cluster: route-dest | ||
requestMirrorPolicies: | ||
- cluster: mirror-route-dest |
Oops, something went wrong.