mirror of
https://github.com/k8snetworkplumbingwg/whereabouts.git
synced 2025-06-03 06:42:26 +00:00
Dev notes for running e2e locally
Signed-off-by: Benjamin Pickard <bpickard@redhat.com>
This commit is contained in:
parent
4532c4dad0
commit
ba8a62c158
@ -78,4 +78,13 @@ EOF
|
||||
2. This script leverages the `whereaboutsScaleNAD` and `scaleTestDeployment` yamls in /yamls
|
||||
3. To modify the number of pods spun by the script, change the replicas value in the `scaleTestDeployment` yaml
|
||||
|
||||
## Running whereabouts e2e locally
|
||||
|
||||
1. To run whereabouts e2e locally you need the godotenv package installed
|
||||
run `go install github.com/joho/godotenv/cmd/godotenv@latest`
|
||||
godot env allows you to pass an env file to go test
|
||||
2. In the whereabouts dir, run 'make kind' -> this will create a kind cluster running whereabouts
|
||||
3. cd to the /e2e dir and create a .env file with this value `KUBECONFIG: $HOME/.kube/config` -> this is where kind writes the kubeconfig by default
|
||||
4. run [[ ! -z "$KUBECONFIG" ]] && echo "$KUBECONFIG" || echo "$HOME/.kube/config" to find the location of your kubeconfig
|
||||
5. add KUBECONFIG: <path/to/kubeconfig> to your .env
|
||||
6. run godotenv -f <path/to/.env> go test -v . -timeout=1h
|
||||
|
Loading…
Reference in New Issue
Block a user