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.
Overview
Brief description of what this PR does, and why it is needed (use case)?
See https://docs.cloudfoundry.org/services/enable-sharing.html
CloudFoundry allows for services to be shared across orgs and spaces -- however this requires that the service broker is explicitly enabling service instance sharing by setting a flag shareable: true. At this time, the AWS ServiceBroker does not pass this variable. This PR will change that.
This has backwards compatibility since it is technically without the value, it is defaulted as false. User must include in the template
shareable: true
and the service broker via CloudFoundry handles the rest.Related Issues
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #249
Testing
How did you validate the changes in this PR? If there are unit tests included describe what they test
Notes
https://docs.cloudfoundry.org/services/enable-sharing.html
Testing Instructions
How to test this PR Start after checking out this branch (bulleted)
shareable: true
to a templateccdb
, confirm that theservices
table has in theextras
field{shareable: true}
cf share-service <the-service-instance> -s <space-to-share-it>
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.