Skip to content

Commit

Permalink
Add support for setting latest k8s in ab scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Markus With committed Jun 10, 2021
1 parent 9b4f5b6 commit 4485bca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/e2e/scenarios/upgrade-ab/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ if [ -z "$KOPS_VERSION_A" ] || [ -z "$K8S_VERSION_A" ] || [ -z "$KOPS_VERSION_B"
exit 1
fi

if [[ "$K8S_VERSION_A" == "latest" ]]; then
K8S_VERSION_A=$(curl https://storage.googleapis.com/kubernetes-release/release/latest.txt)
fi
if [[ "$K8S_VERSION_B" == "latest" ]]; then
K8S_VERSION_B=$(curl https://storage.googleapis.com/kubernetes-release/release/latest.txt)
fi

export KOPS_BASE_URL
KOPS_BASE_URL=$(kops-base-from-marker "${KOPS_VERSION_A}")
KOPS_A=$(kops-download-from-base)
Expand Down

0 comments on commit 4485bca

Please sign in to comment.