Update conformance tests for multinode testing:

pull/9783/head
Sharif Elgamal 2020-11-25 15:17:54 -08:00
parent 7dad70dac2
commit fc8fd7bf27
1 changed files with 6 additions and 4 deletions

View File

@ -27,19 +27,21 @@ set -ex -o pipefail
readonly PROFILE_NAME="k8sconformance"
readonly MINIKUBE=${1:-./out/minikube}
shift || true
readonly START_ARGS=${@:-}
# Requires a fully running Kubernetes cluster.
"${MINIKUBE}" delete -p "${PROFILE_NAME}" || true
"${MINIKUBE}" start -p "${PROFILE_NAME}" --wait=all
"${MINIKUBE}" start -p "${PROFILE_NAME}" ${START_ARGS} --wait=all --nodes=2
kubectl --context "${PROFILE_NAME}" get pods --all-namespaces
"${MINIKUBE}" status -p "${PROFILE_NAME}"
go get -u -v github.com/vmware-tanzu/sonobuoy
curl -LO https://github.com/vmware-tanzu/sonobuoy/releases/download/v0.19.0/sonobuoy_0.19.0_linux_amd64.tar.gz || true
tar -xzf sonobuoy_0.19.0_linux_amd64.tar.gz
sonobuoy run --wait
./sonobuoy run --mode=certified-conformance --wait --alsologtostderr
outdir="$(mktemp -d)"
sonobuoy retrieve "${outdir}"
./sonobuoy retrieve "${outdir}"
cwd=$(pwd)