How to run and test locally.
-
Start minikube and ensure it is the active kubectl context:
minikube start kubectl config use-context minikube
-
Add the minikube host entry to
/etc/hostsso the controller and runner pods can reach meshfed running on your machine:echo "127.0.0.1 host.minikube.internal" | sudo tee -a /etc/hosts
-
Configure
runner-config.yml— the default config atrunner-config.ymlis pre-configured for local development withapi.url: http://host.minikube.internal:8080.
go run .Or from the repo root:
make start-run-controllergo test ./...
go test -v ./controller