Browse Source

Set conformance version from k8s version

pull/1330/head
Erik Wilson 5 years ago
parent
commit
4ec28d2707
  1. 9
      scripts/test-helpers

9
scripts/test-helpers

@ -189,8 +189,15 @@ sonobuoy-test() {
return 0 return 0
fi fi
echo 'Starting sonobuoy tests' echo 'Starting sonobuoy tests'
local VERSION_CONFORMANCE=$(sed -e 's/[-+].*$//g' <<< "$VERSION_K8S")
sonobuoy run \
--config=scripts/sonobuoy-config.json \
--plugin-env=e2e.E2E_USE_GO_RUNNER=true \
--kube-conformance-image-version=${VERSION_CONFORMANCE} \
--wait=30 \
$@ &
sonobuoy run --config=scripts/sonobuoy-config.json --plugin-env=e2e.E2E_USE_GO_RUNNER=true --wait=30 $@ &
local sonobuoyPID=$! local sonobuoyPID=$!
local code=0 local code=0
time wait $sonobuoyPID || code=$? time wait $sonobuoyPID || code=$?

Loading…
Cancel
Save