[Ansible-service-broker] Question about how to generate serviceInstance, serviceBinding and next mount the secret to DC

Ryan Hallisey rhallise at redhat.com
Fri Jan 19 13:56:07 UTC 2018


Thanks for the link. I wasn't aware the service-catalog was working on
a plugin.  Perhaps that's an additional place we can tie in.

- Ryan

On Fri, Jan 19, 2018 at 8:38 AM, Charles Moulliard <cmoullia at redhat.com> wrote:
> kubectl client provides such commands ->
> https://github.com/kubernetes-incubator/service-catalog/pull/840 ;-)
>
>
> On Fri, Jan 19, 2018 at 2:28 PM, Charles Moulliard <cmoullia at redhat.com>
> wrote:
>>
>> Many thanks Ryan for your response
>>
>> 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"
>>
>>
>> On Fri, Jan 19, 2018 at 2:14 PM, Ryan Hallisey <rhallise at redhat.com>
>> wrote:
>>>
>>> Hey Charles,
>>>
>>> I think you raise some good questions. I'll respond inline.
>>>
>>> > The creation of the serviceInstance resource from a clusterServiceClass
>>> > is
>>> > very easy using python apb client - https://goo.gl/zwWPJz but how do
>>> > you
>>> > achieve this goal with the Ansible Service Broker like also to create
>>> > the
>>> > serviceBinding resource ?
>>> >
>>> >
>>> > Why such questions ?
>>> >
>>> > I would like to replace these files created manually here :
>>> >
>>> > - ServiceBinding :
>>> >
>>> > https://github.com/cmoulliard/spring-boot-jpa-rest/blob/master/openshift/mysql-secret_servicebinding.yml
>>> > - ServiceInstance :
>>> >
>>> > https://github.com/cmoulliard/spring-boot-jpa-rest/blob/master/openshift/mysql_serviceinstance.yml
>>> >
>>> > and executed using these oc commands
>>> >
>>> > oc create -f openshift/mysql_serviceinstance.yml
>>> > oc create -f openshift/mysql-secret_servicebinding.yml
>>> > oc env --from=secret/spring-boot-notes-mysql-binding
>>> > dc/spring-boot-db-notes
>>> >
>>> > with new commands where by example, we will create the serviceInstance
>>> > using
>>> >
>>> >  "oc create-service <mysql_clusterServiceClass>
>>> > <mysql_service_instance>
>>> > <params> <plan>"
>>> >
>>> > Next bind the Service to a DeploymentConfig using maybe the following
>>> > command
>>> >
>>> > "oc bind-service <mysql_service_instance> <mysql_deploymentconfig>
>>> >
>>>
>>> The `apb serviceinstance` command was an first attempt to improve the
>>> creation of serviceinstances.  I think there is plenty the community
>>> can do to build on that effort.  But to get at your broader point
>>> here, if we're able to generate the template like with `apb
>>> serviceinstance`, then the cli could also execute the command to use
>>> the template.  Thus providing users with out of the box application
>>> and a way to interact with the API in a few cli commands.
>>>
>>> Yesterday, after we talked about this, I created two issues to track
>>> this.  I think it's a great idea and it will greatly improve the
>>> developer experience.  That being said, if you are interested in
>>> developing some of this work, I would encourage it.  I think this
>>> would be a great contribution to the apb tool.
>>>
>>>
>>> https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/issues/204
>>>
>>> https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/issues/203
>>>
>>> Thanks for bringing this up for discussion on IRC and the mailing list.
>>>
>>> Sincerely,
>>> -Ryan
>>
>>
>




More information about the Ansible-service-broker mailing list