k3s/pkg/kubectl/cmd/portforward
Mikalai Radchuk 4ee2010111 Fixes address parsing in port-forward
The rules for address parsing are:

* Explicitly specified addresses must bind successfully
* `localhost` is pinned to `127.0.0.1` and `::1` and at least one of those must bind successfully

This change also makes output of the command consistent
between runs with the same arguments.
Previously the command was using the range via map of addresses
which sometimes was producing different output because the order
of values is not guaranteed in Go.
2019-02-10 12:48:52 +00:00
..
BUILD Generated changes 2018-10-11 22:01:06 +02:00
portforward.go Fixes address parsing in port-forward 2019-02-10 12:48:52 +00:00
portforward_test.go Allows to use named ports in the kubectl portforward 2018-10-08 20:58:22 +01:00