-
Notifications
You must be signed in to change notification settings - Fork 1.1k
pass portmappings to cni if hostport mapping disabled on CRI-O #7216
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
Conversation
The feature to disable hostport mapping on CRI-O expects the CNI to handle hostport mapping but CRI-O is not passing the mappings, this commit fixes the bug Signed-off-by: Girish Siddananjappa Gangappa <[email protected]>
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: girishsg24 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @girishsg24. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
saschagrunert
left a comment
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.
I think we need an integration test for that use case.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #7216 +/- ##
==========================================
- Coverage 49.23% 49.20% -0.04%
==========================================
Files 136 136
Lines 15517 15528 +11
==========================================
Hits 7640 7640
- Misses 6973 6982 +9
- Partials 904 906 +2 |
I can add one. any pointers? |
|
Yeah we have a hostport connection test here: Lines 77 to 101 in 032e17f
We can also specify the CNI plugin and type in the tests directly, like there: Line 63 in 032e17f
|
|
/ok-to-test |
|
/retest |
|
A friendly reminder that this PR had no activity for 30 days. |
|
Closing this PR since it had no activity in the past 90 days. |
|
This change is good - it would be a shame if it were not merged in some form or another at some point. cri-o's current behaviour, of not passing portMappings onto the CNI plugins under any circumstances, is not the behaviour I would have expected. |
The feature to disable hostport mapping on CRI-O expects the CNI to handle hostport mapping but CRI-O is not passing the mappings, this commit fixes the bug
What type of PR is this?
/kind bug
What this PR does / why we need it:
With the new feature to disable hostport mapping on CRI-O to delegate the functionality to CNI, the expectation is to send the portmappings into the CNIPlugin.SetUpPodWithContext which is missing. This commit fixes the bug and handles both pod create and delete scenario
Which issue(s) this PR fixes:
#7217
Special notes for your reviewer:
Does this PR introduce a user-facing change?
None