A minibroker for your minikube!
Minibroker is an implementation of the Open Service Broker API suited for local development and testing. Rather than provisioning services from a cloud provider, Minibroker provisions services in containers on the cluster.
Minibroker uses the Kubernetes Helm Charts its source of provisionable services.
This is still a work-in-progress, it's not usable yet. 😊
make deploy
make test
On a Mac you will also need either VirtualBox installed, or the Minikube xhyve driver which uses the hypervisor that comes with Docker for Mac.
The default Minikube driver is virtualbox, to use xhyve specify it in ~/.minikube/config/config.json:
{
"vm-driver": "xhyve"
}
- Edit the Makefile and change the IMAGE to something that you can push to.
- Create a Minikube cluster for local development:
make create-cluster
.
Compile and deploy the broker to your local cluster: make deploy
.
We use dep to manage our dependencies. Our vendor directory is checked-in and kept up-to-date with Gopkg.lock, so unless you are actively changing dependencies, you don't need to do anything extra.
- Add the dependency.
-
Import the dependency in the code OR
-
Run
dep ensure --add github.com/pkg/example@v1.0.0
to add an explicit constraint to Gopkg.toml.This is only necessary when we want to stick with a particular branch or version range, otherwise the lock will keep us on the same version and track what's used.
-
- Run
dep ensure
. - Check in the changes to
Gopkg.lock
andvendor/
.