cloudfoundry / cloud-service-broker

OSBAPI service broker that uses Terraform to provision and bind services. Derived from https://github.com/GoogleCloudPlatform/gcp-service-broker
Apache License 2.0
80 stars 37 forks source link

[FR] Implement client subcommand for polling the last operation of a service-binding #389

Closed mogul closed 2 years ago

mogul commented 2 years ago

Is your feature request related to a problem? Please describe.

I need to know when an asynchronous binding or unbinding operation is still in progress, and what the outcome was when it finished.

Describe the solution you'd like

I'd like a new sub-command, cloud-service-broker last-binding --instanceid INSTANCEID --bindingid BINDING. The semantics should be as described in the OSBAPI spec.

Describe alternatives you've considered

I haven't come up with a way to do this other than using raw curl requests.

Additional Context

See the link to the OSBAPI spec above.

Priority

Medium

Priority Context

It's not possible to write reliable tests without using external utilities.

Platform

OSX/Linux

Applicable Services

N/A

cf-gitbot commented 2 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/181292844

The labels on this github issue will be updated when the story is started.

pivotal-marcela-campo commented 2 years ago

Hi @mogul, can you provide more information on what you mean by async bindings? The broker core does not yet support async bindings, it always wait for the binding operation to complete. There is also no implementation yet for getting a binding. So the corresponding method for OSBAPI Fetch Binding currently returns an error.

mogul commented 2 years ago

I realized that after I posted but then I forgot to close my issue. Sorry!