kubectl/pkg/cmd/portforward
Adrian Moreno 3de8ce8105 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: 21b598cbe752dc5d2a2bca0e46729c9e72d162a3
2020-09-11 19:50:11 +02:00
..
portforward.go portforward: Fix UDP-only ports calculation 2020-09-11 19:50:11 +02:00
portforward_test.go portforward: Fix UDP-only ports calculation 2020-09-11 19:50:11 +02:00