Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conformance: add --wait=all, reduce quirks #7716

Merged
merged 1 commit into from
Apr 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions hack/conformance_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Copyright 2019 The Kubernetes Authors All rights reserved.
#
Expand Down Expand Up @@ -27,15 +27,16 @@ 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}" $START_ARGS
"${MINIKUBE}" start -p "${PROFILE_NAME}" --wait=all
kubectl --context "${PROFILE_NAME}" get pods --all-namespaces
"${MINIKUBE}" status -p "${PROFILE_NAME}"
kubectl get pods --all-namespaces

go get -u -v github.com/heptio/sonobuoy
go get -u -v github.com/vmware-tanzu/sonobuoy


sonobuoy run --wait
outdir="$(mktemp -d)"
sonobuoy retrieve "${outdir}"
Expand All @@ -47,8 +48,8 @@ mkdir ./results; tar xzf *.tar.gz -C ./results

version=$(${MINIKUBE} version | cut -d" " -f3)

mkdir minikube-${version}
cd minikube-${version}
mkdir "minikube-${version}"
cd "minikube-${version}"

cat <<EOF >PRODUCT.yaml
vendor: minikube
Expand All @@ -68,4 +69,4 @@ EOF

cp ../results/plugins/e2e/results/* .
cd ..
cp -r minikube-${version} ${cwd}
cp -r "minikube-${version}" "${cwd}"