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

coordinator: ensure hijickRoute's gw is from hostIPRouteForPod #3358

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

cyclinder
Copy link
Collaborator

@cyclinder cyclinder commented Apr 15, 2024

Thanks for contributing!

What type of PR is this?

  • release/bug

What this PR does / why we need it:

Avoiding the GW properly comes from the nodelocaldns's IP when coordinator creates the hijack routes in the pod.

企业微信截图_17131629598028

There are some os where ip r get may return src as the address of the node's nodelocaldns, which should be avoided.

Which issue(s) this PR fixes:

Fixes #3359

Special notes for your reviewer:

@cyclinder cyclinder added release/bug cherrypick-release-v0.7 Cherry-pick the PR to branch release-v0.7. cherrypick-release-v0.8 Cherry-pick the PR to branch release-v0.8. cherrypick-release-v0.9 labels Apr 15, 2024
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.60%. Comparing base (3ae7bf0) to head (f7e0192).
Report is 20 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3358      +/-   ##
==========================================
+ Coverage   81.18%   81.60%   +0.42%     
==========================================
  Files          50       50              
  Lines        5372     4299    -1073     
==========================================
- Hits         4361     3508     -853     
+ Misses        854      633     -221     
- Partials      157      158       +1     
Flag Coverage Δ
unittests 81.60% <ø> (+0.42%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 48 files with indirect coverage changes

@weizhoublue
Copy link
Collaborator

please attach an issue link for this

@cyclinder
Copy link
Collaborator Author

please attach an issue link for this

updated.

Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
@weizhoublue weizhoublue merged commit 9125833 into spidernet-io:main Apr 16, 2024
43 checks passed
github-actions bot pushed a commit that referenced this pull request Apr 16, 2024
coordinator: ensure hijickRoute's gw is from hostIPRouteForPod
Signed-off-by: robot <tao.yang@daocloud.io>
github-actions bot pushed a commit that referenced this pull request Apr 16, 2024
coordinator: ensure hijickRoute's gw is from hostIPRouteForPod
Signed-off-by: robot <tao.yang@daocloud.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherrypick-release-v0.7 Cherry-pick the PR to branch release-v0.7. cherrypick-release-v0.8 Cherry-pick the PR to branch release-v0.8. cherrypick-release-v0.9 release/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Coordinator identified the wrong gateway which caused the pod to remain in ContainerCreating state.
2 participants