-
Notifications
You must be signed in to change notification settings - Fork 380
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
Add ServiceLocalToRemote reject type #4547
Conversation
/test-multicluster-e2e |
Codecov Report
@@ Coverage Diff @@
## main #4547 +/- ##
==========================================
+ Coverage 68.31% 69.81% +1.50%
==========================================
Files 400 414 +14
Lines 58324 58454 +130
==========================================
+ Hits 39843 40812 +969
+ Misses 15708 14851 -857
- Partials 2773 2791 +18
*This pull request uses carry forward flags. Click here to find out more.
|
f2434d8
to
12e8802
Compare
/test-multicluster-e2e |
12e8802
to
25de3db
Compare
/test-multicluster-e2e |
25de3db
to
ed31e58
Compare
/test-multicluster-e2e |
/test-all |
/test-multicluster-e2e |
f943287
to
f5072ae
Compare
/test-multicluster-e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, a few nits.
f5072ae
to
c5f1249
Compare
/test-multicluster-e2e |
/test-all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: graysonwu <[email protected]>
c5f1249
to
dcfd780
Compare
@GraysonWu the unit test diff coverage is 0, could you check if possible to add some unit tests? thanks. |
/test-multicluster-e2e |
/test-all |
55c1cae
to
f9f8e81
Compare
/test-all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits.
f9f8e81
to
f69c50d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few nits
f69c50d
to
a8871af
Compare
Signed-off-by: graysonwu <[email protected]>
/test-all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@jianjuns could you help to take a look again? @GraysonWu added a few unit tests for the change. |
…4819) Signed-off-by: graysonwu <[email protected]>
For single cluster rejection, there is no difference for Service traffic or Pod-to-Pod traffic in localToRemote rejection. Service LB won't be executed on the Node where we generate reject responses. So we didn't define podLocalToRemote and serviceLocalToRemote and just let the reject response packet start from L3/L2Forwarding table based on the Node type. But in multi-cluster situations, when the server Endpoint Pod is on the gateway Node of its cluster, where Service LB is executed, we need reject response packets to go thru the whole pipeline to be correctly UnDNATed and forwarded.
Fixes #4535
For single cluster rejection, there is no difference for Service traffic or Pod-to-Pod traffic in
localToRemote
rejection. Service LB won't be executed on the Node where we generate reject responses. So we didn't definepodLocalToRemote
andserviceLocalToRemote
and just let the reject response packet start from L3/L2Forwarding table based on the Node type.But in multi-cluster situations, when the server Endpoint Pod is on the gateway Node of its cluster, where Service LB is executed, we need reject response packets to go thru the whole pipeline to be correctly UnDNATed and forwarded.
Signed-off-by: graysonwu [email protected]