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

Fix service targetPort with string for Windows #70076

Merged
merged 1 commit into from
Oct 24, 2018

Conversation

feiskyer
Copy link
Member

What type of PR is this?

Uncomment only one, leave it on its own line:

/kind api-change
/kind bug
/kind cleanup
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

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?:

Fix service issues with named targetPort for Windows

/sig windows
/assign @madhanrm @dineshgovindasamy

@feiskyer
Copy link
Member Author

/milestone v1.13

@k8s-ci-robot k8s-ci-robot added needs-kind Indicates a PR lacks a `kind/foo` label and requires one. sig/network Categorizes an issue or PR as relevant to SIG Network. labels Oct 22, 2018
@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Oct 22, 2018
@feiskyer
Copy link
Member Author

/kind bug
/sig windows

@feiskyer
Copy link
Member Author

/test

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. sig/windows Categorizes an issue or PR as relevant to SIG Windows. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Oct 22, 2018
@feiskyer feiskyer closed this Oct 23, 2018
@feiskyer feiskyer reopened this Oct 23, 2018
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 23, 2018
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 23, 2018
@feiskyer
Copy link
Member Author

/milestone v1.13

@k8s-ci-robot k8s-ci-robot added this to the v1.13 milestone Oct 23, 2018
@feiskyer
Copy link
Member Author

/retest

@feiskyer
Copy link
Member Author

/check-cla

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 23, 2018
Copy link

@dineshgovindasamy dineshgovindasamy left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 24, 2018
@feiskyer
Copy link
Member Author

/retest

@k8s-ci-robot k8s-ci-robot merged commit 0d17976 into kubernetes:master Oct 24, 2018
@feiskyer feiskyer deleted the named-port branch October 24, 2018 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/network Categorizes an issue or PR as relevant to SIG Network. sig/windows Categorizes an issue or PR as relevant to SIG Windows. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows: Service does not work if targetPort is string
5 participants