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

only reserver ip instance after pod terminated #403

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

mars1024
Copy link
Collaborator

Pull Request Description

Describe what this PR does / why we need it

IPInstance reservation happens immediately after pod terminating now, so preStop will lose network connectivity because of this.

Does this pull request fix one issue?

NONE

Describe how you did it

To avoid losing network connectivity when pre-stopping, we should reserve ip instance only after pod terminated, which means all containers of pod do not need network connectivity any more.

Describe how to verify it

Integration test will do this.

Special notes for reviews

NONE

Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 50.00% and project coverage change: +0.26% 🎉

Comparison is base (1fa3e61) 41.11% compared to head (b826ab8) 41.38%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #403      +/-   ##
==========================================
+ Coverage   41.11%   41.38%   +0.26%     
==========================================
  Files          42       42              
  Lines        2753     2757       +4     
==========================================
+ Hits         1132     1141       +9     
+ Misses       1501     1499       -2     
+ Partials      120      117       -3     
Flag Coverage Δ
unittests 41.38% <50.00%> (+0.26%) ⬆️

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

Files Changed Coverage Δ
pkg/controllers/networking/pod_controller.go 50.26% <50.00%> (-0.01%) ⬇️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@hhyasdf hhyasdf left a comment

Choose a reason for hiding this comment

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

/lgtm

@hhyasdf hhyasdf merged commit c71befd into alibaba:main Sep 21, 2023
7 checks passed
hhyasdf added a commit to hhyasdf/hybridnet that referenced this pull request Sep 21, 2023
…ated

only reserver ip instance after pod terminated
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.

3 participants