Description of problem: The help documentation for oc process is not updated with the changes to the -v param being deprecated and being replaced by -p option in the usage section. Version-Release number of selected component (if applicable): openshift v3.5.0.9+e84be2b kubernetes v1.5.2+43a9be4 etcd 3.1.0 How reproducible: Always Steps to Reproduce: 1. say oc process -h 2. Note the usage section to be as follows Usage: oc process (TEMPLATE | -f FILENAME) [-v=KEY=VALUE] [options] 3. use oc process according to above and say oc process -v ROLE=sender sometemplate.json 4. note the output to be Flag --value has been deprecated, Use -p, --param instead. error: template "uperf-scc.json" could not be found Actual results: the command doesn't work as help documentation suggests as [-v=KEY=VALUE], --value KEY=VALUE is deprecated Expected results: the usage section in "oc process -h" should read oc process (TEMPLATE | -f FILENAME) [-p=KEY=VALUE] [options] instead of oc process (TEMPLATE | -f FILENAME) [-v=KEY=VALUE] [options] Additional info:
Related PR: https://github.com/openshift/origin/pull/12724
Verified on oc v3.5.0.30-1+35fa4bf -v is dropped and is not in the help info, -p is clear with usage. # oc process -h ... Usage: oc process (TEMPLATE | -f FILENAME) [-p=KEY=VALUE] [options] ... -p, --param=[]: Specify a key-value pair (eg. -p FOO=BAR) to set/override a parameter value in the template. ... # oc process -p MYSQL_USER=myname -f https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json Command output the processed json # oc process -p MYSQL_USER=myname -f https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json |oc create -f - secret "dbsecret" created service "frontend" created route "route-edge" created imagestream "origin-ruby-sample" created imagestream "ruby-22-centos7" created buildconfig "ruby-sample-build" created deploymentconfig "frontend" created service "database" created deploymentconfig "database" created
Since this never reached customers, I am closing this bug.