openyurtio / openyurt

OpenYurt - Extending your native Kubernetes to edge(project under CNCF)
https://openyurt.io
Apache License 2.0
1.68k stars 391 forks source link

The gateway can forward traffic from extra source cidrs #1993

Closed River-sh closed 3 months ago

River-sh commented 3 months ago

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line: /kind feature /sig network

What this PR does / why we need it:

This PR allows traffic from non-clustered nodes to be forwarded via raven to hosts or containers in other regions

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

other Note

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 73.33333% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 52.99%. Comparing base (183e739) to head (a03feb9).

Files Patch % Lines
...r/raven/gatewaypickup/gateway_pickup_controller.go 73.33% 3 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1993 +/- ## ========================================== - Coverage 53.03% 52.99% -0.04% ========================================== Files 176 176 Lines 20929 20944 +15 ========================================== + Hits 11099 11100 +1 - Misses 8882 8895 +13 - Partials 948 949 +1 ``` | [Flag](https://app.codecov.io/gh/openyurtio/openyurt/pull/1993/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/openyurtio/openyurt/pull/1993/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio) | `52.99% <73.33%> (-0.04%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

rambohe-ch commented 3 months ago

@River-sh Thanks for making pull request, please add unit tests for your pull request.

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.5% Duplication on New Code

See analysis details on SonarCloud

rambohe-ch commented 3 months ago

/lgtm