Merge pull request #14161 from olemarkus/e2e-ab-ci-download

Fix test package location when using k8s ci versions in the upgrade AB scenario
This commit is contained in:
Kubernetes Prow Robot 2022-08-22 09:01:43 -07:00 committed by GitHub
commit a8acccf6a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 2 deletions

View File

@ -102,7 +102,7 @@ function kops-channels-download-from-base() {
function kops-base-from-marker() {
if [[ "${1}" =~ ^https: ]]; then
echo "${1}"
curl -s "${1}"
elif [[ "${1}" == "latest" ]]; then
curl -s "https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt"
else

View File

@ -22,6 +22,8 @@ if [ -z "${KOPS_VERSION_A-}" ] || [ -z "${K8S_VERSION_A-}" ] || [ -z "${KOPS_VER
exit 1
fi
TEST_PACKAGE_VERSION="${K8S_VERSION_B}"
if [[ "$K8S_VERSION_A" == "latest" ]]; then
K8S_VERSION_A=$(curl https://storage.googleapis.com/kubernetes-release/release/latest.txt)
fi
@ -39,6 +41,9 @@ if [[ "$K8S_VERSION_A" == "ci" ]]; then
fi
if [[ "$K8S_VERSION_B" == "ci" ]]; then
K8S_VERSION_B=https://storage.googleapis.com/k8s-release-dev/ci/$(curl https://storage.googleapis.com/k8s-release-dev/ci/latest.txt)
TEST_PACKAGE_MARKER="latest.txt"
TEST_PACKAGE_DIR="ci"
TEST_PACKAGE_BUCKET="k8s-release-dev"
fi
export KOPS_BASE_URL
@ -127,10 +132,22 @@ if [[ -n ${KOPS_SKIP_E2E:-} ]]; then
exit
fi
test_package_args="--parallel 25"
test_package_args+=" --test-package-dir=${TEST_PACKAGE_DIR-}"
test_package_args+=" --test-package-bucket=${TEST_PACKAGE_BUCKET-}"
if [[ -n ${TEST_PACKAGE_MARKER-} ]]; then
test_package_args+=" --test-package-marker=${TEST_PACKAGE_MARKER}"
else
test_package_args+=" --test-package-version=${TEST_PACKAGE_VERSION}"
fi
# shellcheck disable=SC2086
${KUBETEST2} \
--cloud-provider="${CLOUD_PROVIDER}" \
--kops-binary-path="${KOPS}" \
--test=kops \
-- \
--test-package-version="${K8S_VERSION_B}" \
$test_package_args \
--parallel 25