-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service broker create instance schemas #834
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[#145580721] Signed-off-by: Sam Gunaratne <[email protected]>
Store create instance schemas in the db [#145580729] Signed-off-by: Alex Blease <[email protected]>
* add migration for new service_plans.create_instance_schema column * add new CatalogSchemas object and add a reference to CatalogPlan * add create_instance_schema to ServicePlan model * populate create_instance_schema in ServiceManager * add default schemas in ServicePlanPresenter * update API version [#145580729] Signed-off-by: Stev Witzel <[email protected]> Signed-off-by: Sam Gunaratne <[email protected]> Signed-off-by: Stev Witzel, switzel <s.witzel, [email protected]>
- Add schemas if present to the /v2/service_plan/:guid - Add broker api tests for future 2.13 release [#146453595]
Signed-off-by: Alex Blease <[email protected]>
Hey Samze! Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA. |
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/147446125 The labels on this github issue will be updated when the story is started. |
Samze
added a commit
to Samze/cf-acceptance-tests
that referenced
this pull request
Jun 21, 2017
Service brokers may now define JSON schema as part of the catalog endpoint. This will be offered on through CAPI and consumed by client tooling. See openservicebrokerapi/servicebroker#59 and cloudfoundry/cloud_controller_ng#834
Samze
added a commit
to Samze/cf-acceptance-tests
that referenced
this pull request
Jun 29, 2017
Service brokers may now define JSON schema as part of the catalog endpoint. This will be offered on through CAPI and consumed by client tooling. See openservicebrokerapi/servicebroker#59 and cloudfoundry/cloud_controller_ng#834 Signed-off-by: Alex Blease <[email protected]>
Merged in here. Thanks for the PR, very thorough! |
4 tasks
Samze
added a commit
to vmware-archive/cf-acceptance-tests
that referenced
this pull request
Jul 21, 2017
Service brokers may now define JSON schema as part of the catalog endpoint. This will be offered on through CAPI and consumed by client tooling. See openservicebrokerapi/servicebroker#59 and cloudfoundry/cloud_controller_ng#834
4 tasks
Samze
added a commit
to vmware-archive/cf-acceptance-tests
that referenced
this pull request
Aug 2, 2017
Service brokers may now define JSON schema as part of the catalog endpoint. This will be offered on through CAPI and consumed by client tooling. See openservicebrokerapi/servicebroker#59 and cloudfoundry/cloud_controller_ng#834 Signed-off-by: Alex Blease <[email protected]>
4 tasks
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As a service broker author, I can register a single plan with a create service instance schema #145580729
As a client tooling author, I can retrieve a create service instance schema for a plan #146453595
Why
The Open Service Broker API is proposing allowing brokers to define JSON schema for their configuration parameters. This will allow tooling to validate parameters and UIs to auto generate forms.
Schemas are to be defined as part of the catalog on a plan and support create/update parameters on a service instance and create parameters on a service binding (update does not exist yet).
The updated spec can be found here.
Example of what a new catalog with schemas will look like:
What
This PR just adds basic support for create instance schemas. Schemas are parsed during registration, stored in the service plan model and retrieved on the /v2/service_plan/:guid api endpoint. If a broker does not provide a schema, then we default to an empty schema.
create_instance_schema
to plan model objectcreate_instance_schema
Notable things that are not in this PR but are addressed in future stories are:
Notes
Feedback appreciated!
PR
master
branchbundle exec rake
Sam & @ablease
cc: @matthewmcnew @st3v