Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.51 KB

building.md

File metadata and controls

56 lines (35 loc) · 1.51 KB

Build

The following steps layout the process of generating a cf-operator controller and how to install this in your Kubernetes cluster. This is probably a good approach, when developing, as a way to inmediately test your changes.

Build it from source

Follow this steps to build a proper docker image and generate a deployable helm chart:

  1. Checkout the latest stable release / or run it from develop branch

    git checkout v0.3.0
  2. Build the cf-operator binary, this will be embedded later on the docker image

    bin/build
  3. Build the docker image

    When running in minikube, please run: eval $(minikube docker-env), to build the image directly on minikube docker.

    bin/build-image

    Note: This will automatically generate a docker image tag based on your current commit, tag and SHA.

  4. Generated helm charts with a proper docker image tag, org and repository

    bin/build-helm

    Note: This will generate a new directory under the base dir, named helm/

  5. Install the helm chart(apply Kubernetes Custom Resources)

    helm install cf-operator-test helm/cf-operator

    Note: The cf-operator will be available under the namespace set in the context, usually default, running as a pod.

Notes

Local Development with Minikube and Havener

Make sure you have havener install.

havener deploy --config dev-env-havener.yaml