Note: This repository should be imported as code.cloudfoundry.org/gcp-broker-proxy.
This broker proxies requests to Google's hosted service broker. It handles the OAuth flow and allows the Google Cloud Platform Service Broker to be registered in Cloud Foundry.
go get -u code.cloudfoundry.org/gcp-broker-proxy
- Install the Google Cloud Platform (GCP) tools
gcloud components install betagcloud components install kubectlgcloud auth logingcloud auth application-default login
- Install the customized Google Service Catalog (SC) tool
go get -u github.com/GoogleCloudPlatform/k8s-service-catalog/installer/cmd/sc
- Use the SC tool to enable the Google Hosted Broker
sc advanced create-gcp-broker- Take note of the broker URL.
- Configure the broker by setting the environment variables in the
manifest.yml.- Set the
USERNAME&PASSWORDto the basic authentication credentials you use to register the proxy with Cloud Foundry. - Set the
BROKER_URLto the URL output by the SC tool. - Set
SERVICE_ACCOUNT_JSONto your GCP Service account JSON- We recommend the service account role
Service Broker Operator
- We recommend the service account role
- Set the
make build-linuxcf push- Run
cf appsand take note of the pushed application's URL cf create-service-broker gcp-broker <username> <password> <app_url>
The Cloud Foundry team uses GitHub and accepts contributions via pull request.
If you need any help, have any questions or have found a bug, please open a GitHub issue in this project. You can also reach the Cloud Foundry Services API team who maintain this through our Slack Channel.
make test
make build
This project uses dep as its dependency management tool. The documentation for dep can be found here.