add detailed repro steps for conformance README

pull/12758/head
Sharif Elgamal 2021-10-21 12:55:15 -07:00
parent d72d87f2e7
commit 1a8a6e1e88
1 changed files with 26 additions and 1 deletions

View File

@ -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 <<EOF >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 <minikube dir>
% 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 <minikube dir>
./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/* .