Skip to content

Commit 9a370ab

Browse files
committed
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 (kubernetes-sigs/kind#1910).
1 parent 22c0395 commit 9a370ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: prow.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,8 @@ start_cluster () {
558558
git_clone_branch https://github.com/kubernetes/kubernetes "${CSI_PROW_WORK}/src/kubernetes" "$version" || die "checking out Kubernetes $version failed"
559559

560560
go_version="$(go_version_for_kubernetes "${CSI_PROW_WORK}/src/kubernetes" "$version")" || die "cannot proceed without knowing Go version for Kubernetes"
561-
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"
561+
# Changing into the Kubernetes source code directory is a workaround for https://github.com/kubernetes-sigs/kind/issues/1910
562+
(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"
562563
csi_prow_kind_have_kubernetes=true
563564
fi
564565
image="csiprow/node:latest"

0 commit comments

Comments
 (0)