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 documentation
pull/6/head
Kubernetes Submit Queue 2017-08-23 03:36:03 -07:00 committed by GitHub
commit 9cecb3b358
1 changed files with 1 additions and 4 deletions

View File

@ -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 {