Document URL: 1. https://docs.openshift.org/latest/dev_guide/port_forwarding.html 2. oc help port-forward Section Number and Name: Devloper Guide -> Port Forwarding Describe the issue: The document and online help both give several examples using the -p option to specify the pod. In 3.2, using the -p option gives a warning message that the flag has been deprecated. The new syntax is: oc port-forward POD [LOCAL_PORT:]REMOTE_PORT [...[LOCAL_PORT_N:]REMOTE_PORT_N] [options] Suggestions for improvement: Remove -p Additional information:
For oc exec, the documentation is right. But cli help also uses -p
Work in progress: https://github.com/openshift/openshift-docs/pull/2286 @Andrew, please review and note the comment from Xingxing Xia regarding CLI help. Thanks!
@ Mike, Please review as well. Thanks.
+1 for me.
The CLI is, paradoxically, maintained by the Web UI team. Added jforrest to the cc:
CLI issue fixed in https://github.com/openshift/origin/pull/9351
@ Ashley Hardin The doc PR LGTM. Thanks! @ Fabiano Franz Tested with oc v1.3.0-alpha.1-379-g662753c, works: oc port-forward -h Examples: # Listens on ports 5000 and 6000 locally, forwarding data to/from ports 5000 and 6000 in the pod oc port-forward mypod 5000 6000 ... Options: -p, --pod='': Pod name (deprecated) Seems better to correct `oc exec -h` too (comment 1)? As far as I know, that is the only left sub-command with deprecated '--pod'. Thank you.
Commits pushed to master at https://github.com/openshift/openshift-docs https://github.com/openshift/openshift-docs/commit/ce42059390553c6260b2ce827019e098552a7881 Bug 1316157, updated outdated syntax instances of https://github.com/openshift/openshift-docs/commit/f05a5d852eca9b6af2f039e31be1e35a09fefc45 Merge pull request #2286 from ahardin-rh/port-forwarding Bug 1316157, updated outdated syntax instances of oc port-forward -p
Right, `oc exec` fixed in https://github.com/openshift/origin/pull/9382.
Thanks. Saw the change of `oc exec -h` in devenv-rhel7_4393, looks fine.
Content is now published: https://access.redhat.com/documentation/en/openshift-enterprise/version-3.2/developer-guide/#basic-usage