Skip to content

Commit 66d3631

Browse files
committed
Change release-tools to work with the release-2.1 branch.
1 parent 5358f06 commit 66d3631

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.prow.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#! /bin/bash
22

3+
# This is specific to the release-2.1 branch and overrides the
4+
# version set in the prow config.
35
export CSI_SNAPSHOTTER_VERSION=v2.1.2
46

57
. release-tools/prow.sh

release-tools/build.make

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,10 @@ test-vendor:
245245

246246
.PHONY: test-subtree
247247
test: test-subtree
248+
# For the release-2.1 branch, we have forked release-tools and so cannot run
249+
# the subtree test.
248250
test-subtree:
249-
@ echo; echo "### $@:"
250-
./release-tools/verify-subtree.sh release-tools
251+
@ echo; echo "### $@: skipping test-subtree"
251252

252253
# Components can extend the set of directories which must pass shellcheck.
253254
# The default is to check only the release-tools directory itself.

release-tools/prow.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ get_versioned_variable () {
6565
echo "$value"
6666
}
6767

68-
configvar CSI_PROW_BUILD_PLATFORMS "linux amd64; windows amd64 .exe; linux ppc64le -ppc64le; linux s390x -s390x; linux arm64 -arm64" "Go target platforms (= GOOS + GOARCH) and file suffix of the resulting binaries"
68+
# Note that in the release-2.1 branch the s390x architecture is not supported.
69+
configvar CSI_PROW_BUILD_PLATFORMS "linux amd64; windows amd64 .exe; linux ppc64le -ppc64le; linux arm64 -arm64" "Go target platforms (= GOOS + GOARCH) and file suffix of the resulting binaries"
6970

7071
# If we have a vendor directory, then use it. We must be careful to only
7172
# use this for "make" invocations inside the project's repo itself because
@@ -335,7 +336,8 @@ default_csi_snapshotter_version () {
335336
if [ "${CSI_PROW_KUBERNETES_VERSION}" = "latest" ] || [ "${CSI_PROW_DRIVER_CANARY}" = "canary" ]; then
336337
echo "master"
337338
else
338-
echo "v3.0.2"
339+
# This is specific to the release-2.1 branch of external-snapshotter.
340+
echo "v2.1.2"
339341
fi
340342
}
341343
configvar CSI_SNAPSHOTTER_VERSION "$(default_csi_snapshotter_version)" "external-snapshotter version tag"
@@ -700,9 +702,10 @@ install_csi_driver () {
700702
# Installs all nessesary snapshotter CRDs
701703
install_snapshot_crds() {
702704
# Wait until volumesnapshot CRDs are in place.
703-
CRD_BASE_DIR="https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${CSI_SNAPSHOTTER_VERSION}/client/config/crd"
705+
# This CRD path is specific to the release-2.1 external-snapshotter branch.
706+
CRD_BASE_DIR="https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${CSI_SNAPSHOTTER_VERSION}/config/crd"
704707
if [[ ${REPO_DIR} == *"external-snapshotter"* ]]; then
705-
CRD_BASE_DIR="${REPO_DIR}/client/config/crd"
708+
CRD_BASE_DIR="${REPO_DIR}/config/crd"
706709
fi
707710
echo "Installing snapshot CRDs from ${CRD_BASE_DIR}"
708711
kubectl apply -f "${CRD_BASE_DIR}/snapshot.storage.k8s.io_volumesnapshotclasses.yaml" --validate=false

0 commit comments

Comments
 (0)