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}"