@@ -136,6 +136,9 @@ kind_version_default () {
136
136
case " ${CSI_PROW_KUBERNETES_VERSION} " in
137
137
latest|master)
138
138
echo main;;
139
+ 1.21* |release-1.21)
140
+ # TODO: replace this special case once the next KinD release supports 1.21.
141
+ echo main;;
139
142
* )
140
143
echo v0.10.0;;
141
144
esac
@@ -185,8 +188,8 @@ configvar CSI_PROW_USE_BAZEL true "use Bazel during 'kind node-image' invocation
185
188
# CSI_PROW_DEPLOYMENT variable can be set in the
186
189
# .prow.sh of each component when there are breaking changes
187
190
# that require using a non-default deployment. The default
188
- # is a deployment named "kubernetes-x.yy" (if available),
189
- # otherwise "kubernetes-latest".
191
+ # is a deployment named "kubernetes-x.yy${CSI_PROW_DEPLOYMENT_SUFFIX} " (if available),
192
+ # otherwise "kubernetes-latest${CSI_PROW_DEPLOYMENT_SUFFIX} ".
190
193
# "none" disables the deployment of the hostpath driver.
191
194
#
192
195
# When no deploy script is found (nothing in `deploy` directory,
@@ -198,6 +201,7 @@ configvar CSI_PROW_USE_BAZEL true "use Bazel during 'kind node-image' invocation
198
201
configvar CSI_PROW_DRIVER_VERSION " v1.3.0" " CSI driver version"
199
202
configvar CSI_PROW_DRIVER_REPO https://github.com/kubernetes-csi/csi-driver-host-path " CSI driver repo"
200
203
configvar CSI_PROW_DEPLOYMENT " " " deployment"
204
+ configvar CSI_PROW_DEPLOYMENT_SUFFIX " " " additional suffix in kubernetes-x.yy[suffix].yaml files"
201
205
202
206
# The install_csi_driver function may work also for other CSI drivers,
203
207
# as long as they follow the conventions of the CSI hostpath driver.
@@ -650,9 +654,9 @@ find_deployment () {
650
654
651
655
# Ignore: See if you can use ${variable//search/replace} instead.
652
656
# shellcheck disable=SC2001
653
- file=" $dir /kubernetes-$( echo " ${CSI_PROW_KUBERNETES_VERSION} " | sed -e ' s/\([0-9]*\)\.\([0-9]*\).*/\1.\2/' ) /deploy.sh"
657
+ file=" $dir /kubernetes-$( echo " ${CSI_PROW_KUBERNETES_VERSION} " | sed -e ' s/\([0-9]*\)\.\([0-9]*\).*/\1.\2/' ) ${CSI_PROW_DEPLOYMENT_SUFFIX} /deploy.sh"
654
658
if ! [ -e " $file " ]; then
655
- file=" $dir /kubernetes-latest/deploy.sh"
659
+ file=" $dir /kubernetes-latest${CSI_PROW_DEPLOYMENT_SUFFIX} /deploy.sh"
656
660
if ! [ -e " $file " ]; then
657
661
return 1
658
662
fi
0 commit comments