Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#229 from bertinatto/skip_v116
Browse files Browse the repository at this point in the history
Skip prow job when on Kubernetes v1.16.
  • Loading branch information
k8s-ci-robot authored May 4, 2020
2 parents b2caf3d + 3597938 commit 978baf3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .prow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,26 @@

. release-tools/prow.sh

# This check assumes that the current configuration uses a driver deployment
# which has been updated to use v1 APIs that aren't available in Kubernetes < 1.17.
# TODO: The check can be removed when all Prow jobs for Kubernetes < 1.17 are removed.
if ! (version_gt "${CSI_PROW_KUBERNETES_VERSION}" "1.16.255" || [ "${CSI_PROW_KUBERNETES_VERSION}" == "latest" ]); then
filtered_tests=
skipped_tests=
for test in ${CSI_PROW_TESTS}; do
case "$test" in
parallel | parallel | serial | parallel-alpha | serial-alpha)
skipped_tests="$skipped_tests $test"
;;
*)
filtered_tests="$filtered_tests $test"
;;
esac
done
if [ "$skipped_tests" ]; then
info "Testing on Kubernetes ${CSI_PROW_KUBERNETES_VERSION} is no longer supported. Skipping CSI_PROW_TESTS: $skipped_tests."
CSI_PROW_TESTS="$filtered_tests"
fi
fi

main

0 comments on commit 978baf3

Please sign in to comment.