Local environment
Run cf-service-operator in a local environment
Prerequisites
- A Kubernetes cluster running locally, for example provided by kind or minikube
- Jetstack’s cert-manager installed in that cluster
- A stable non-loopback address of this host, exported as environment variable
HOST_IP
- The target cluster’s kubeconfig made available as
.kubeconfig
at the root of this repository (can also be a symlink of course).
Deployment
- Deploy the cf-service-operator custom resource definitions to Kubernetes:
kubectl apply -f crds
- Deploy the webhook related artifacts to Kubernetes:
envsubst < .local/k8s-resources.yaml | kubectl apply -f -
- Extract the webhook certificates to be consumed by the controller:
.local/getcerts.sh
Launching
Then the operator can be started by the include .vscode/launch.json
file (‘Launch Operator’).
Last modified June 23, 2023: use more specific path patterns with controller-gen (to avoid clashes with go.mod files under ./website) (76f9201)