# whether they can run with the current cluster provider, but until
# whether they can run with the current cluster provider, but until
# they are, we filter them out by name. Like the other test selection
# they are, we filter them out by name. Like the other test selection
# variables, this is again a space separated list of regular expressions.
# variables, this is again a space separated list of regular expressions.
configvar CSI_PROW_E2E_SKIP 'while.kubelet.is.down.*Disruptive'"tests that need to be skipped"
configvar CSI_PROW_E2E_SKIP 'Disruptive'"tests that need to be skipped"
# This is the directory for additional result files. Usually set by Prow, but
# This is the directory for additional result files. Usually set by Prow, but
# if not (for example, when invoking manually) it defaults to the work directory.
# if not (for example, when invoking manually) it defaults to the work directory.
...
@@ -379,8 +379,8 @@ install_kind () {
...
@@ -379,8 +379,8 @@ install_kind () {
if run curl --fail--location-o"${CSI_PROW_WORK}/bin/kind""https://github.com/kubernetes-sigs/kind/releases/download/${CSI_PROW_KIND_VERSION}/kind-linux-amd64";then
if run curl --fail--location-o"${CSI_PROW_WORK}/bin/kind""https://github.com/kubernetes-sigs/kind/releases/download/${CSI_PROW_KIND_VERSION}/kind-linux-amd64";then
run_with_go "${CSI_PROW_GO_VERSION_KIND}" go build -o"${CSI_PROW_WORK}/bin/kind" sigs.k8s.io/kind
(cd"${GOPATH}/src/sigs.k8s.io/kind"&& make install INSTALL_DIR="${CSI_PROW_WORK}/bin")
fi
fi
}
}
...
@@ -427,6 +427,27 @@ git_checkout () {
...
@@ -427,6 +427,27 @@ git_checkout () {
(cd"$path"&& run git clean -fdx)|| die "failed to clean $path"
(cd"$path"&& run git clean -fdx)|| die "failed to clean $path"
}
}
# This clones a repo ("https://github.com/kubernetes/kubernetes")
# in a certain location ("$GOPATH/src/k8s.io/kubernetes") at
# a the head of a specific branch (i.e., release-1.13, master).
# The directory cannot exist.
git_clone_branch (){
local repo path branch parent
repo="$1"
shift
path="$1"
shift
branch="$1"
shift
parent="$(dirname"$path")"
mkdir-p"$parent"
(cd"$parent"&& run git clone --single-branch--branch"$branch""$repo""$path")|| die "cloning $repo" failed
# This is useful for local testing or when switching between different revisions in the same
# repo.
(cd"$path"&& run git clean -fdx)|| die "failed to clean $path"
}
list_gates ()(
list_gates ()(
set-f;IFS=','
set-f;IFS=','
# Ignore: Double quote to prevent globbing and word splitting.
# Ignore: Double quote to prevent globbing and word splitting.
...
@@ -472,25 +493,10 @@ start_cluster () {
...
@@ -472,25 +493,10 @@ start_cluster () {
if["$version"="latest"];then
if["$version"="latest"];then
version=master
version=master
fi
fi
git_checkout https://github.com/kubernetes/kubernetes "$GOPATH/src/k8s.io/kubernetes""$version"--depth=1 || die "checking out Kubernetes $version failed"
git_clone_branch https://github.com/kubernetes/kubernetes "${CSI_PROW_WORK}/src/kubernetes""$version"|| die "checking out Kubernetes $version failed"
# "kind build" and/or the Kubernetes build rules need at least one tag, which we don't have
go_version="$(go_version_for_kubernetes "${CSI_PROW_WORK}/src/kubernetes""$version")"|| die "cannot proceed without knowing Go version for Kubernetes"
# when doing a shallow fetch. Therefore we fake one: