Comments (5)
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/167969937
The labels on this github issue will be updated when the story is started.
from brokerapi.
Hey @mrgunior!
Thanks for writing. We write brokerapi in conjunction with our on-demand service broker, which interacts with CF. Interestingly and for some reason no one currently on the team knows, the on-demand broker doesn't follow spec, and our broker returns an [instance exists error](Use github.com/pivotal-cf/brokerapi/domain) error, which is handled in the broker api in the [error checking](Use github.com/pivotal-cf/brokerapi/domain).
In order to return the StatusOK 200, we thought of a couple of possibilities.
The provisionResponse could be extended to include a new property like InstanceAlreadyExists
, and that could be checked after the broker returns. If it's true, return 200.
Or before the broker Provision gets called, there could be a call to the OSBAPI GetInstance endpoint. If the incoming ProvisionDetails match details from the result of GetInstance, return 200 and never ask the broker to provision.
Were you thinking of other options?
Also our team would need time to make the change as we have other things active at the moment. Is this something you'd want to PR?
Thanks
Winna
from brokerapi.
Get instance won't work, since according to the specs provision should be the one to do these checks. Get instance also doesn't really help, since not all parameters are set by the user from upfront. There needs to be a thorough check between the local and the remote instance and a correct code response should be returned.
from brokerapi.
Thanks for getting back to us @mrgunior. It sounds like you have an approach in mind. Do you have time/capacity to PR the work and tests for this?
from brokerapi.
Merged this functionality in #77
from brokerapi.
Related Issues (20)
- Check for API version in Unbind operation HOT 2
- Dependabot can't parse your go.mod HOT 1
- Binding struct is missing support for Endpoint? HOT 4
- Audit log by the APIHandler type HOT 3
- Missing metadata field in ProvisionedServiceSpec HOT 4
- Missing allow_context_updates field HOT 7
- Unversioned handlers shouldn't not use versioned domain/apiresponses HOT 2
- Use of authentication methods other than Basic Auth HOT 6
- v8 backwards compatiblity HOT 7
- Is the FailureResponse status code used? HOT 4
- test issgu HOT 1
- Incorrect type for metadata fields in Get/Provision/Deprovision responses HOT 3
- Broker does not accept url-encoded forward slash in instance_id HOT 6
- Ability to implement custom ServicePlanCost? HOT 1
- Feature request: Simple way to add prometheus exporter HOT 3
- Support for Binding rotation HOT 3
- Requirement to expose additional API endpoints HOT 3
- Setting CF labels not supported? HOT 4
- Your .dependabot/config.yml contained invalid details HOT 2
- Dependabot couldn't find a Gopkg.toml for this project HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brokerapi.