Skip to content

Commit

Permalink
Cover edge case when on new minor release for E2E upgrade test (k3s-i…
Browse files Browse the repository at this point in the history
…o#10781)

Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola committed Sep 3, 2024
1 parent 29a6f27 commit 3eea8ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,10 @@ steps:
UPGRADE_CHANNEL="latest"
else
UPGRADE_CHANNEL=$(echo $DRONE_BRANCH | sed 's/release-/v/')
# Check if the UPGRADE_CHANNEL exists, in the case of new minor releases it won't
if ! curl --head --silent --fail https://update.k3s.io/v1-release/channels/$UPGRADE_CHANNEL; then
UPGRADE_CHANNEL="latest"
fi
fi
E2E_RELEASE_CHANNEL=$UPGRADE_CHANNEL go test -v -timeout=45m ./upgradecluster_test.go -ci -local
cp ./coverage.out /tmp/artifacts/upgrade-coverage.out
Expand Down

0 comments on commit 3eea8ef

Please sign in to comment.