-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Hotfix: Port numbers need a bigger integer #7054
base: main
Are you sure you want to change the base?
Conversation
The ideal solution would be to use uint16, however, that will require a bigger amount of change to adjust all types. Int32 should so. Signed-off-by: Saed SayedAhmed <[email protected]>
Signed-off-by: Saed SayedAhmed <[email protected]>
Signed-off-by: Saed SayedAhmed <[email protected]>
@saedx1 Excellent! Thanks for catching this issue! |
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.
🚀
@jjngx No problem. Would we be able to get a patch release (like |
We will decide early next week. In the meantime, when this fix gets merged, you will be able to use the |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7054 +/- ##
==========================================
- Coverage 52.79% 52.76% -0.03%
==========================================
Files 89 89
Lines 20827 20827
==========================================
- Hits 10996 10990 -6
- Misses 9376 9380 +4
- Partials 455 457 +2 ☔ View full report in Codecov by Sentry. |
Hi @saedx1, can you please create an issue for this based on our contributing guidelines? The upper limit i.e. port 32767 is basically the highest default allowed port for nodeport. |
Closes #7063 |
Just for the record, I'll respond here to this as well. This should have nothing to do with NodePorts or the NodePort range. |
Proposed changes
Very simple; an
int16
cannot fit port numbers, onlyuint16
orint32
/int64
can fit them.The current version of NIC breaks on ports greater than
32767
when used withnginx.org/listen-ports
ornginx.org/listen-ports-ssl
annotations.Checklist
Before creating a PR, run through this checklist and mark each as complete.