From b383ec926248db100e4e1091fdd61c24f61b1c5c Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Tue, 20 Aug 2024 08:58:01 -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 df8c6150..f1ccbcb8 100755 --- a/release-tools/prow.sh +++ b/release-tools/prow.sh @@ -624,7 +624,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"