Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.37 KB

DEVELOPMENT.md

File metadata and controls

54 lines (37 loc) · 1.37 KB

Development

Prerequisites

Access to a Kubernetes Cluster

First of all, you will need access to a Kubernetes cluster. The easiest way to start is minikube.

  • Virtualbox - hypervisor to run a kubernetes cluster
  • Minikube - for kubernetes cluster creation on local machine
  • Kubectl - to interact with kubernetes cluster
Tools to build and test k8s-vault-webhook

Apart from kubernetes cluster, there are some tools which are needed to build and test k8s-vault-webhook.

Build Locally

To achieve this, execute this command:-

make build-code

Build Image

k8s-vault-webhook gets packaged as a container image for running on Kubernetes cluster. These instructions will guide you to build image.

make build-image

Testing

If you want to play it on Kubernetes. You can use minikube.

#Start minikube
minikube start --vm-driver virtualbox
#Deploy the image on minikube
$ helm upgrade k8s-vault-webhook ot-helm/k8s-vault-webhook --namespace vault --install

Run Tests

make test