From c87ebb7380fef30d5c58baa2c25bead8447834d0 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 27 Oct 2020 12:19:14 +0100 Subject: [PATCH] prow.sh: work around "kind build node-image" failure Kind 0.9.0 accesses the "bazel-out" directory with a relative path, which only works when the command is invoked inside the Kubernetes source code directory (https://github.com/kubernetes-sigs/kind/issues/1910). --- release-tools/prow.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release-tools/prow.sh b/release-tools/prow.sh index 7da7ecdf6..632e777cc 100755 --- a/release-tools/prow.sh +++ b/release-tools/prow.sh @@ -563,7 +563,8 @@ start_cluster () { git_clone_branch https://github.com/kubernetes/kubernetes "${CSI_PROW_WORK}/src/kubernetes" "$version" || die "checking out Kubernetes $version failed" go_version="$(go_version_for_kubernetes "${CSI_PROW_WORK}/src/kubernetes" "$version")" || die "cannot proceed without knowing Go version for Kubernetes" - run_with_go "$go_version" kind build node-image --image csiprow/node:latest --type="$type" --kube-root "${CSI_PROW_WORK}/src/kubernetes" || die "'kind build node-image' failed" + # Changing into the Kubernetes source code directory is a workaround for https://github.com/kubernetes-sigs/kind/issues/1910 + (cd "${CSI_PROW_WORK}/src/kubernetes" && run_with_go "$go_version" kind build node-image --image csiprow/node:latest --type="$type" --kube-root "${CSI_PROW_WORK}/src/kubernetes") || die "'kind build node-image' failed" csi_prow_kind_have_kubernetes=true fi image="csiprow/node:latest"