diff --git a/hack/conformance_tests.sh b/hack/conformance_tests.sh index 34b3801090..2b5f409078 100755 --- a/hack/conformance_tests.sh +++ b/hack/conformance_tests.sh @@ -51,6 +51,8 @@ tar -xzf $tarball outdir="$(mktemp -d)" ./sonobuoy retrieve "${outdir}" +"${MINIKUBE}" delete -p "${PROFILE_NAME}" + cwd=$(pwd) cd "${outdir}" @@ -74,7 +76,30 @@ description: minikube runs a local Kubernetes cluster on macOS, Linux, and Windo EOF cat <README.md -./hack/conformance_tests.sh $MINIKUBE $START_ARGS +# Reproducing the test results + +## Run minikube with docker driver + +Install [docker](https://docs.docker.com/engine/install/) +Install [kubectl](https://v1-18.docs.kubernetes.io/docs/tasks/tools/install-kubectl/) +Clone the [minikube repo](https://github.com/kubernetes/minikube) + +## Compile the latest minikube binary +```console +% cd +% make +``` + +## Trigger the tests and get back the results + +We follow the [official instructions](https://github.com/cncf/k8s-conformance/blob/master/instructions.md): + +```console +% cd +./hack/conformance_tests.sh ${MINIKUBE} ${START_ARGS} +``` + +This script will run sonobuoy against a minikube cluster with two nodes and the provided parameters. EOF cp -r ../results/plugins/e2e/results/global/* .