minibroker

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2018 License: MIT

README

Minibroker

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.

Install

make deploy

Use

make setup-wordpress

Local Development

Requirements

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"
}

Initial Setup

  1. Edit the Makefile and change the IMAGE to something that you can push to.
  2. Create a Minikube cluster for local development: make create-cluster.

Deploy

Compile and deploy the broker to your local cluster: make deploy.

Test

make test

Dependency Management

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 a new dependency
  1. 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.

  2. Run dep ensure.
  3. Check in the changes to Gopkg.lock and vendor/.

Directories

Path Synopsis
cmd
pkg
tests
integration Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL