Skip to content

Commit

Permalink
Merge pull request #7716 from tstromberg/conformance2
Browse files Browse the repository at this point in the history
conformance: add --wait=all, reduce quirks
  • Loading branch information
medyagh authored Apr 18, 2020
2 parents 3276ed4 + 5b30fd6 commit 40442ba
Showing 1 changed file with 9 additions and 8 deletions.
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}"

0 comments on commit 40442ba

Please sign in to comment.