Skip to content

Commit

Permalink
Merge pull request kubernetes#50229 from tcharding/kubectl-portforward
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Kubernetes Submit Queue authored Aug 23, 2017
2 parents d2af141 + 95cccbb commit 9cecb3b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/kubectl/cmd/portforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9cecb3b

Please sign in to comment.