<div dir="ltr">Hi,<div><br></div><div>I have been trying to use oc to create services so that it can be automated in Jenkins, etc. There is a flow that works but leaves quite a lot to be desired. Is there a better way to do this with "oc new-app" similar to images, imagestreams and templates?</div><div><br></div><div>Here is the flow:</div><div><br></div><div><div>1. List APBs</div><div><br></div><div><font face="monospace">oc get clusterserviceclasses --all-namespaces -o custom-columns=NAME:.<a href="http://metadata.name">metadata.name</a>,DISPLAYNAME:spec.externalMetadata.displayName | grep APB</font></div><div><br></div><div>2. Find out the selected APB's external name</div><div><br></div><div><font face="monospace">oc get clusterserviceclasses e171fe1a84c3750a0957e7e917af9530 -o yaml</font></div><div><br></div><div>3. Find the source of the APB (apb.yml) to figure out the parameter names and plans e.g.</div><div><a href="https://github.com/ansibleplaybookbundle/postgresql-apb/blob/master/apb.yml">https://github.com/ansibleplaybookbundle/postgresql-apb/blob/master/apb.yml</a></div><div><br></div><div>4. Create a yml file for the serviceinstance, specifying values for external apb name, params, plans, etc</div><div><br></div><div>5. Create the service instance using CLI</div><div><font face="monospace">oc create -f postgresql-si.yml</font></div></div><div><font face="monospace"><br></font></div><div><font face="monospace"><br></font></div><div>Kind Regards,</div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">Siamak Sadeghianfar</font></div><div><font face="arial, helvetica, sans-serif">Principal Technical Marketing Manager</font></div><div><span style="font-family:arial,helvetica,sans-serif">OpenShift, Red Hat Inc.</span></div><div><font face="arial, helvetica, sans-serif">M: <a href="tel:+46%2073%20183%2055%2053" value="+46731835553" target="_blank">+46-73-183-5553</a> | T: @siamaks<br></font></div><div><font face="arial, helvetica, sans-serif"><a href="http://redhat.com" target="_blank">redhat.com</a> | TRIED. TESTED. TRUSTED.</font><br></div></div>
<br></div></div></div><div><font face="monospace"><br></font></div><div><font face="monospace"><br></font></div></div>