Secrets created using oc in Openshift not taking value after semicolon

5/16/2018

I am creating secrets in OpenShift using oc as below :

oc create secret generic mysecret --from- 
literal=jdbc.mmi.driverClassName=something --from- 
literal=jdbc.mmi.userid=something --from-literal=jdbc.mmi.password=something  
-from-literal=jdbc.mmi.url=something;databaseName=somedatabasename

In the above command openShift is not taking value after semicolon ;databaseName=somedatabasename

How to handle such kind of value in openshift ?

-- Ishant Gaurav
kubernetes
openshift

1 Answer

5/16/2018

Try quoting the value. An unquoted ; terminates the command

-- Jordan Liggitt
Source: StackOverflow