Issue tracker and mirror of kubectl code
Go to file
Adrian Moreno 92ea032f08 portforward: Fix UDP-only ports calculation
If a service has both TCP and UDP but the TCP port appears before in the
range loop, it will be considered a UDP-only port and the forwarding
will fail.

Fix that by calculating the difference between UDP ports and TCP ports.

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>

Kubernetes-commit: c194bc85319298e7c2fd002031d0ff23ded54591
2020-09-11 19:50:11 +02:00
.github Added issue templates for kubectl 2020-05-27 20:00:50 -04:00
Godeps Merge pull request #94680 from ingvagabund/automated-cherry-pick-of-#93687-upstream-release-1.19 2020-09-11 06:04:52 +00:00
docs Fix the newName field name in the page 2020-03-29 00:23:47 +01:00
images Adds kubectl logo images 2019-06-21 11:34:42 -07:00
pkg portforward: Fix UDP-only ports calculation 2020-09-11 19:50:11 +02:00
testdata replace whitelist to allowlist 2020-06-09 10:17:21 +08:00
CONTRIBUTING.md Adds staging directory for kubectl code 2019-05-29 23:31:23 -07:00
LICENSE Adds staging directory for kubectl code 2019-05-29 23:31:23 -07:00
OWNERS Adds staging directory for kubectl code 2019-05-29 23:31:23 -07:00
README.md Remove doc reference to godep #782 2020-01-25 20:49:34 -05:00
SECURITY_CONTACTS Update security contacts for kubectl 2019-09-03 10:15:43 +02:00
code-of-conduct.md Adds staging directory for kubectl code 2019-05-29 23:31:23 -07:00
go.mod Merge pull request #94680 from ingvagabund/automated-cherry-pick-of-#93687-upstream-release-1.19 2020-09-11 06:04:52 +00:00
go.sum Merge pull request #94680 from ingvagabund/automated-cherry-pick-of-#93687-upstream-release-1.19 2020-09-11 06:04:52 +00:00

README.md

Kubectl

kubectl logo

Build Status GoDoc

The k8s.io/kubectl repo is used to track issues for the kubectl cli distributed with k8s.io/kubernetes. It also contains packages intended for use by client programs. E.g. these packages are vendored into k8s.io/kubernetes for use in the kubectl cli client. That client will eventually move here too.

Contribution Requirements

  • Full unit-test coverage.

  • Go tools compliant (go get, go test, etc.). It needs to be vendorable somewhere else.

  • No dependence on k8s.io/kubernetes. Dependence on other repositories is fine.

  • Code must be usefully commented. Not only for developers on the project, but also for external users of these packages.

  • When reviewing PRs, you are encouraged to use Golang's code review comments page.

  • Packages in this repository should aspire to implement sensible, small interfaces and import a limited set of dependencies.

Community, discussion, contribution, and support

See this document for how to reach the maintainers of this project.

Code of conduct

Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.