<div dir="ltr">Many thanks Ryan for your response<div><br></div><div>Is the right place within the apb python client project to make such developments (ticket 203, 204) ? Ideally such development to improve developer experience should take place around "oc" client or the new one that DevExp team is discussing "ocd" </div><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px"><br></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Jan 19, 2018 at 2:14 PM, Ryan Hallisey <span dir="ltr"><<a href="mailto:rhallise@redhat.com" target="_blank">rhallise@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Charles,<br>
<br>
I think you raise some good questions. I'll respond inline.<br>
<span class=""><br>
> The creation of the serviceInstance resource from a clusterServiceClass is<br>
> very easy using python apb client - <a href="https://goo.gl/zwWPJz" rel="noreferrer" target="_blank">https://goo.gl/zwWPJz</a> but how do you<br>
> achieve this goal with the Ansible Service Broker like also to create the<br>
> serviceBinding resource ?<br>
><br>
><br>
> Why such questions ?<br>
><br>
> I would like to replace these files created manually here :<br>
><br>
> - ServiceBinding :<br>
> <a href="https://github.com/cmoulliard/spring-boot-jpa-rest/blob/master/openshift/mysql-secret_servicebinding.yml" rel="noreferrer" target="_blank">https://github.com/cmoulliard/<wbr>spring-boot-jpa-rest/blob/<wbr>master/openshift/mysql-secret_<wbr>servicebinding.yml</a><br>
> - ServiceInstance :<br>
> <a href="https://github.com/cmoulliard/spring-boot-jpa-rest/blob/master/openshift/mysql_serviceinstance.yml" rel="noreferrer" target="_blank">https://github.com/cmoulliard/<wbr>spring-boot-jpa-rest/blob/<wbr>master/openshift/mysql_<wbr>serviceinstance.yml</a><br>
><br>
> and executed using these oc commands<br>
><br>
> oc create -f openshift/mysql_<wbr>serviceinstance.yml<br>
> oc create -f openshift/mysql-secret_<wbr>servicebinding.yml<br>
> oc env --from=secret/spring-boot-<wbr>notes-mysql-binding dc/spring-boot-db-notes<br>
><br>
> with new commands where by example, we will create the serviceInstance using<br>
><br>
>  "oc create-service <mysql_clusterServiceClass> <mysql_service_instance><br>
> <params> <plan>"<br>
><br>
> Next bind the Service to a DeploymentConfig using maybe the following<br>
> command<br>
><br>
> "oc bind-service <mysql_service_instance> <mysql_deploymentconfig><br>
><br>
<br>
</span>The `apb serviceinstance` command was an first attempt to improve the<br>
creation of serviceinstances.  I think there is plenty the community<br>
can do to build on that effort.  But to get at your broader point<br>
here, if we're able to generate the template like with `apb<br>
serviceinstance`, then the cli could also execute the command to use<br>
the template.  Thus providing users with out of the box application<br>
and a way to interact with the API in a few cli commands.<br>
<br>
Yesterday, after we talked about this, I created two issues to track<br>
this.  I think it's a great idea and it will greatly improve the<br>
developer experience.  That being said, if you are interested in<br>
developing some of this work, I would encourage it.  I think this<br>
would be a great contribution to the apb tool.<br>
<br>
<a href="https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/issues/204" rel="noreferrer" target="_blank">https://github.com/<wbr>ansibleplaybookbundle/ansible-<wbr>playbook-bundle/issues/204</a><br>
<a href="https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/issues/203" rel="noreferrer" target="_blank">https://github.com/<wbr>ansibleplaybookbundle/ansible-<wbr>playbook-bundle/issues/203</a><br>
<br>
Thanks for bringing this up for discussion on IRC and the mailing list.<br>
<br>
Sincerely,<br>
-Ryan<br>
</blockquote></div><br></div></div>