From 621181c15493cedeff6a3188e50eb065f8e015eb Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Tue, 20 Aug 2024 06:58:09 -0500 Subject: [PATCH] Remove --kube-root deprecated kind argument The --kube-root flag has been deprecated in kind for some time and will be removed. The current equivalent functionality is to pass the path to the kubernetes source as the first non-flag argument to "build node-image". This updates the prow script to use the newer preferred method in preparation for kind dropping the flag. Signed-off-by: Sean McGinnis --- release-tools/prow.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release-tools/prow.sh b/release-tools/prow.sh index ff8f9e0..65350a3 100755 --- a/release-tools/prow.sh +++ b/release-tools/prow.sh @@ -613,7 +613,7 @@ start_cluster () { go_version="$(go_version_for_kubernetes "${CSI_PROW_WORK}/src/kubernetes" "$version")" || die "cannot proceed without knowing Go version for Kubernetes" # Changing into the Kubernetes source code directory is a workaround for https://github.com/kubernetes-sigs/kind/issues/1910 # shellcheck disable=SC2046 - (cd "${CSI_PROW_WORK}/src/kubernetes" && run_with_go "$go_version" kind build node-image --image csiprow/node:latest --kube-root "${CSI_PROW_WORK}/src/kubernetes") || die "'kind build node-image' failed" + (cd "${CSI_PROW_WORK}/src/kubernetes" && run_with_go "$go_version" kind build node-image "${CSI_PROW_WORK}/src/kubernetes" --image csiprow/node:latest) || die "'kind build node-image' failed" csi_prow_kind_have_kubernetes=true fi image="csiprow/node:latest"