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 kubectl explicit local port for service #89401
Fix kubectl explicit local port for service #89401
Conversation
@liggitt: GitHub didn't allow me to request PR reviews from the following users: mariusziemke. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions 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 APPROVED This pull-request has been approved by: liggitt 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 |
/lgtm |
/test pull-kubernetes-node-e2e-containerd |
something is up with kind... |
…1-upstream-release-1.18 Automated cherry pick of #89401: fix kubectl port-forward for services with explicit local
…k-of-#89401-upstream-release-1.18 Automated cherry pick of kubernetes#89401: fix kubectl port-forward for services with explicit local Kubernetes-commit: 4d552d8
What type of PR is this?
/kind bug
What this PR does / why we need it:
Kubectl currently ignores the local port when creating a port-forward to a service. This PR fixes this and adds unit tests for preventing this behaviour in the future.
Which issue(s) this PR fixes:
Fixes kubernetes/kubectl#836
Special notes for your reviewer:
Builds on #88950 with review comment #88950 (comment) addressed
Does this PR introduce a user-facing change?:
/sig cli
/milestone v1.18
/priority important-soon
/kind bug
/cc @mariusziemke