Code Monkey home page Code Monkey logo

Comments (5)

cf-gitbot avatar cf-gitbot commented on August 21, 2024

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.

winnab avatar winnab commented on August 21, 2024

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.

mrgunior avatar mrgunior commented on August 21, 2024

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.

winnab avatar winnab commented on August 21, 2024

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.

winnab avatar winnab commented on August 21, 2024

Merged this functionality in #77

from brokerapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.