From 4b7c9ea5cbaa7c4476cc23027158a0296ac57776 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Mon, 5 Oct 2020 16:01:34 +0530 Subject: [PATCH] e2e: add SNAPSHOT_VERSION to build.env Signed-off-by: Prasanna Kumar Kalever --- build.env | 4 ++++ scripts/install-snapshot.sh | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/build.env b/build.env index 5061c148d..1a4cc7931 100644 --- a/build.env +++ b/build.env @@ -21,6 +21,10 @@ GO111MODULE=on GOLANGCI_VERSION=v1.27.0 GOSEC_VERSION=v2.3.0 +# external snapshotter version +# Refer: https://github.com/kubernetes-csi/external-snapshotter/releases +SNAPSHOT_VERSION=v3.0.1 + # "go test" configuration # set to stdout or html to enable coverage reporting, disabled by default #TEST_COVERAGE=html diff --git a/scripts/install-snapshot.sh b/scripts/install-snapshot.sh index 35b8fe8ba..bc3b245ad 100755 --- a/scripts/install-snapshot.sh +++ b/scripts/install-snapshot.sh @@ -2,10 +2,13 @@ # This script can be used to install/delete snapshotcontroller and snapshot beta CRD -SNAPSHOT_VERSION=${SNAPSHOT_VERSION:-"v3.0.1"} - SCRIPT_DIR="$(dirname "${0}")" +# shellcheck source=build.env +source "${SCRIPT_DIR}/../build.env" + +SNAPSHOT_VERSION=${SNAPSHOT_VERSION:-"v3.0.1"} + TEMP_DIR="$(mktemp -d)" SNAPSHOTTER_URL="https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOT_VERSION}"