Description of problem:
I've been trying to figure out how to pass comma-delimited values using oc
parameters. For example (note MQ_PROTOCOL):
oc process -f amq/amq6-basic.json -v
| oc create -f -
The comma between 'stomp' and 'amqp' is always parsed as parameter delimiter
not a value delimiter no matter what combination of \ ^ " ' I use. Could you
point me to who I should talk to about the Go parser in oc?
We shouldn't have done -v like we did. Please open a bug "process
must take multiple -v arguments" and we can fix it.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. oc process -f amq/amq6-basic.json -v
| oc create -f -
-v should not have been implemented with string splitting. We have to accept multiple -v.
Because of backcompat, we need to introduce a new multiple value form, and we should probably accept argument key=value pairs like oc env
Fixed in https://github.com/openshift/origin/pull/7013
Will check this bug after the pr is merged
Checked this bug in devenv-rhel7_3335,it was fixed.After the pr is merged to ose puddle,I'll check again.
# oc process -f https://raw.githubusercontent.com/jboss-openshift/application-templates/master/amq/amq62-basic.json APPLICATION_NAME=messaging MQ_USERNAME=username MQ_PASSWORD=password,MQ_PROTOCOL=stomp,amqp | oc create -f -
service "messaging-amq-amqp" created
service "messaging-amq-mqtt" created
service "messaging-amq-stomp" created
service "messaging-amq-tcp" created
deploymentconfig "messaging-amq" created
The bug has been fixed on the latest puddle.
$ oc version
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.