summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/installers/containerd.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/tools/installers/containerd.sh b/tools/installers/containerd.sh
index b8da1fe42..be54f494c 100755
--- a/tools/installers/containerd.sh
+++ b/tools/installers/containerd.sh
@@ -19,15 +19,11 @@ set -xeo pipefail
declare -r CONTAINERD_VERSION=${1:-1.3.0}
declare -r CONTAINERD_MAJOR="$(echo ${CONTAINERD_VERSION} | awk -F '.' '{ print $1; }')"
declare -r CONTAINERD_MINOR="$(echo ${CONTAINERD_VERSION} | awk -F '.' '{ print $2; }')"
+declare -r CRITOOLS_VERSION=${CRITOOLS_VERSION:-1.18.0}
-# We're running Go 1.16, but using pre-module containerd and cri-tools.
-export GO111MODULE=off
-
-# Default to an older version for crictl for containerd <= 1.2.
-if [[ "${CONTAINERD_MAJOR}" -eq 1 ]] && [[ "${CONTAINERD_MINOR}" -le 2 ]]; then
- declare -r CRITOOLS_VERSION=${CRITOOLS_VERSION:-1.13.0}
-else
- declare -r CRITOOLS_VERSION=${CRITOOLS_VERSION:-1.18.0}
+if [[ "${CONTAINERD_MAJOR}" -eq 1 ]] && [[ "${CONTAINERD_MINOR}" -le 4 ]]; then
+ # We're running Go 1.16, but using pre-module containerd and cri-tools.
+ export GO111MODULE=off
fi
# Helper for Go packages below.