Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: group xds backend traffic features for BackendTrafficPolicy #3189

Merged
merged 10 commits into from
May 13, 2024

Conversation

shawnh2
Copy link
Contributor

@shawnh2 shawnh2 commented Apr 14, 2024

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #2954, separated from #2926

shawnh2 added 2 commits April 14, 2024 23:31
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
@shawnh2 shawnh2 requested a review from a team as a code owner April 14, 2024 15:35
@shawnh2 shawnh2 requested review from zhaohuabing and arkodg April 14, 2024 15:35
@shawnh2
Copy link
Contributor Author

shawnh2 commented Apr 15, 2024

/retest

internal/ir/xds.go Outdated Show resolved Hide resolved
@shawnh2 shawnh2 requested a review from arkodg April 16, 2024 11:32
@@ -592,6 +592,7 @@ xdsIR:
distinct: false
name: ""
prefix: /
traffic: {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty, is this expected ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed is empty

arkodg
arkodg previously approved these changes May 10, 2024
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks !

@zhaohuabing
Copy link
Member

@shawnh2 resolve the conflicts, then we're good to go :-)

shawnh2 added 3 commits May 11, 2024 11:11
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
@shawnh2
Copy link
Contributor Author

shawnh2 commented May 11, 2024

@shawnh2 resolve the conflicts, then we're good to go :-)

Done

ConfigType: &routev3.RetryPolicy_RetryHostPredicate_TypedConfig{
TypedConfig: protocov.ToAny(&previoushost.PreviousHostsPredicate{}),
},
rr := route.Traffic.Retry
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skip the nil check here, since it's been checked outside this func

shawnh2 added 2 commits May 11, 2024 12:30
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
@shawnh2
Copy link
Contributor Author

shawnh2 commented May 11, 2024

/retest

@shawnh2 shawnh2 requested a review from arkodg May 13, 2024 05:45
@arkodg arkodg merged commit 6f6d868 into envoyproxy:main May 13, 2024
20 checks passed
@shawnh2 shawnh2 deleted the xds-btp-group branch May 14, 2024 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor ir HTTPRoute: group related features into structures
3 participants