kubectl/pkg
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
..
apply Rename test/data directory to testdata 2019-10-31 13:40:02 -07:00
apps Move pkg/kubectl/apps to staging 2019-07-24 20:02:05 -07:00
cmd portforward: Fix UDP-only ports calculation 2020-09-11 19:50:11 +02:00
describe kubectl describe pod: use ReportingController as an event source 2020-08-04 18:10:34 +02:00
drain Fix int->string casts 2020-07-24 11:13:07 -04:00
explain Improve kubectl explain formatting-preservation 2020-06-05 00:46:51 -04:00
generate Added --privileged flag to kubectl run 2020-04-28 16:30:59 -04:00
generated Add sigs for root folders 2020-08-11 10:35:20 -04:00
metricsutil cleanup req.Context() and ResponseWrapper 2020-01-27 18:52:27 -08:00
polymorphichelpers Squash pkg/describe/versioned/ into pkg/describe/ 2020-03-03 13:06:26 +01:00
proxy switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
rawhttp refactor 2020-01-27 18:19:44 -08:00
scale Support kubectl scale --dry-run=server|client 2020-03-30 17:33:15 -04:00
scheme Copy CSR v1beta1 to v1 2020-06-01 21:26:28 -04:00
util When combining PolicyRules, don't duplicate verbs 2020-05-18 15:20:06 -04:00
validation Move pkg/kubectl/validation to staging 2019-06-26 12:56:28 -07:00