-
Notifications
You must be signed in to change notification settings - Fork 361
How to Make a Shareable Service Instance
Eric Promislow edited this page Feb 7, 2018
·
6 revisions
- Create org org, spaces space1 and space2
- Log in as admin on space space1
- cf enable-feature-flag service_instance_sharing
- In cats/assets/service_broker, modify the
data.json
file as follows:
"requires": [
"route_forwarding" <----- REMOVE
],
...
"metadata": {
"shareable": true <----- ADD
}
z cf-acceptance-tests && cd assets/service_broker
ruby setup_new_broker.rb async-broker TARGET.capi.land
- cf marketplace to get service name FSNAME
- cf cs FSNAME fake-plan fs1
- cf create-user joe joe
- cf set-space-role joe org space2 SpaceDeveloper
- cf auth joe joe
- cf target -o org -s space2
- cf service fs1 should not find service
fs1
- cf auth admin ADMINPASSWORD # or target_cf
- cf target -o org -s space1
- service="$(cf service fs1 --guid)"
- space2="$(cf space space2 --guid)"
cf curl -X POST /v3/service_instances/$service/relationships/shared_spaces -d '{"data": [ { "guid": "'$space2'" } ] }'
- cf auth joe joe
- cf target -o org -s space2
- cf service fs1 should give details on service
fs1
- cf curl -X DELETE /v3/service_instances/$service/relationships/shared_spaces/$(cf space TARGET_SPACE --guid)
-
Pipelines
-
Contributing
- Tips and Tricks
- Cloud Controller API v3 Style Guide
- Playbooks
- Development configuration
- Testing
-
Architectural Details
-
CC Resources
- Apps
- Audit Events
- Deployments
- Labels
- Services
- Sidecars
-
Dependencies
-
Troubleshooting
- Ruby Console Script to Find Fields that Cannot Be Decrypted
- Logging database queries in unit tests
- Inspecting blobstore cc resources and cc packages(webdav)
- How to Use USR1 Trap for Diagnostics
- How to Perf: Finding and Fixing Bottlenecks
- How to get access to mysql database
- How To Get a Ruby Heap Dumps & GC Stats from CC
- How to curl v4 internal endpoints with mtls
- How to access Bosh Director console and restore an outdated Cloud Config
- Analyzing Cloud Controller's NGINX logs using the toplogs script
-
k8s
-
Archive