-
Notifications
You must be signed in to change notification settings - Fork 39k
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
Fix service targetPort with string for Windows #70076
Conversation
/milestone v1.13 |
/kind bug |
/test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feiskyer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/milestone v1.13 |
/retest |
/check-cla |
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.
/lgtm
/retest |
What type of PR is this?
What this PR does / why we need it:
When service's targetPort is set to port name, then service on Windows doesn't work as expected because winkernel proxier always treat the port as 0.
This PR fixes this by getting the port from endpoints.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #69336 #67827
Special notes for your reviewer:
Note that
hcsshim.AddLoadBalancer()
doesn't support endpoints with different ports, so only port from the first endpoint is used.Does this PR introduce a user-facing change?:
/sig windows
/assign @madhanrm @dineshgovindasamy