mirror of https://github.com/k3s-io/k3s.git
Merge pull request #50229 from tcharding/kubectl-portforward
Automatic merge from submit-queue (batch tested with PRs 50229, 50973, 50976, 51085, 51084) Remove duplicate command example **What this PR does / why we need it**: `kubectl port-forward --help` currently contains a duplicate example. This PR removes the duplicate. ```release-note /release-note Remove duplicate command example from `kubectl port-forward --help` ``` /sig cli /kind cleanup /kind documentationpull/6/head
commit
9cecb3b358
|
@ -59,10 +59,7 @@ var (
|
|||
kubectl port-forward mypod 8888:5000
|
||||
|
||||
# Listen on a random port locally, forwarding to 5000 in the pod
|
||||
kubectl port-forward mypod :5000
|
||||
|
||||
# Listen on a random port locally, forwarding to 5000 in the pod
|
||||
kubectl port-forward mypod 0:5000`))
|
||||
kubectl port-forward mypod :5000`))
|
||||
)
|
||||
|
||||
func NewCmdPortForward(f cmdutil.Factory, cmdOut, cmdErr io.Writer) *cobra.Command {
|
||||
|
|
Loading…
Reference in New Issue