We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a61dc50 + 6b32089 commit ff4b5fcCopy full SHA for ff4b5fc
experiment/compatibility-versions/e2e-k8s-compatibility-versions.sh
@@ -391,7 +391,12 @@ main() {
391
UPGRADE_SCRIPT="${UPGRADE_SCRIPT:-${PWD}/../test-infra/experiment/compatibility-versions/kind-upgrade.sh}"
392
echo "Upgrading cluster with ${UPGRADE_SCRIPT}"
393
394
- upgrade_cluster_components
+ upgrade_cluster_components || res=$?
395
+ # If upgrade fails, we shouldn't run tests but should still clean up.
396
+ if [[ "$res" -ne 0 ]]; then
397
+ cleanup
398
+ exit $res
399
+ fi
400
401
# Clone the previous versions Kubernetes release branch
402
# TODO(aaron-prindle) extend the branches to test from n-1 -> n-1..3 as more k8s releases are done that support compatibility versions
0 commit comments