Skip to content

Commit 6616a6b

Browse files
authored
Merge pull request #146 from pohly/kubernetes-1.21
Kubernetes 1.21
2 parents 51ac11c + 510fb0f commit 6616a6b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: prow.sh

+8-4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ kind_version_default () {
136136
case "${CSI_PROW_KUBERNETES_VERSION}" in
137137
latest|master)
138138
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;;
139142
*)
140143
echo v0.10.0;;
141144
esac
@@ -185,8 +188,8 @@ configvar CSI_PROW_USE_BAZEL true "use Bazel during 'kind node-image' invocation
185188
# CSI_PROW_DEPLOYMENT variable can be set in the
186189
# .prow.sh of each component when there are breaking changes
187190
# 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}".
190193
# "none" disables the deployment of the hostpath driver.
191194
#
192195
# 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
198201
configvar CSI_PROW_DRIVER_VERSION "v1.3.0" "CSI driver version"
199202
configvar CSI_PROW_DRIVER_REPO https://github.com/kubernetes-csi/csi-driver-host-path "CSI driver repo"
200203
configvar CSI_PROW_DEPLOYMENT "" "deployment"
204+
configvar CSI_PROW_DEPLOYMENT_SUFFIX "" "additional suffix in kubernetes-x.yy[suffix].yaml files"
201205

202206
# The install_csi_driver function may work also for other CSI drivers,
203207
# as long as they follow the conventions of the CSI hostpath driver.
@@ -650,9 +654,9 @@ find_deployment () {
650654

651655
# Ignore: See if you can use ${variable//search/replace} instead.
652656
# 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"
654658
if ! [ -e "$file" ]; then
655-
file="$dir/kubernetes-latest/deploy.sh"
659+
file="$dir/kubernetes-latest${CSI_PROW_DEPLOYMENT_SUFFIX}/deploy.sh"
656660
if ! [ -e "$file" ]; then
657661
return 1
658662
fi

0 commit comments

Comments
 (0)