Merge pull request #12778 from justinsb/e2e_full_kops_base_url

e2e tests: recognize a full KOPS_BASE_URL as a KOPS_VERSION
This commit is contained in:
Kubernetes Prow Robot 2021-11-18 08:19:02 -08:00 committed by GitHub
commit 3fd0449509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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