![Build Status](https://travis-ci.org/cloudfoundry-incubator/gcp-broker-proxy.svg?branch=master)
Warning: This proxy will not function until async bindings are supported in Cloud Foundry.
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.
Installation
go get -u code.cloudfoundry.org/gcp-broker-proxy
Deploying to Cloud Foundry
- Install the Google Cloud Platform (GCP) tools
gcloud components install beta
gcloud components install kubectl
gcloud auth login
gcloud 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
& PASSWORD
to the basic authentication credentials you use to register the proxy with Cloud Foundry.
- Set the
BROKER_URL
to the URL output by the SC tool.
- Set
SERVICE_ACCOUNT_JSON
to your GCP Service account JSON
- We recommend the service account role
Service Broker Operator
make build-linux
cf push
- Run
cf apps
and take note of the pushed application's URL
cf create-service-broker gcp-broker <username> <password> <app_url>
Contributing
The Cloud Foundry team uses GitHub and accepts contributions via pull request.
Need help?
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.
Development
Test
make test
Build
make build
Built with
Tested with
Dependencies
This project uses dep
as its dependency management tool. The documentation for dep
can be found here.