diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index ad68ebb44f0..6ec7f1ded28 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -1019,9 +1019,10 @@ function parse_eviction { } function install_cni { + cni_plugin_sha=CNI_PLUGINS_${CNI_TARGETARCH^^}_SHA256SUM echo "Installing CNI plugin binaries ..." \ && curl -sSL --retry 5 --output /tmp/cni."${CNI_TARGETARCH}".tgz "${CNI_PLUGINS_URL}" \ - && echo "${CNI_PLUGINS_AMD64_SHA256SUM} /tmp/cni.amd64.tgz" | tee /tmp/cni.sha256 \ + && echo "${!cni_plugin_sha} /tmp/cni.${CNI_TARGETARCH}.tgz" | tee /tmp/cni.sha256 \ && sha256sum --ignore-missing -c /tmp/cni.sha256 \ && rm -f /tmp/cni.sha256 \ && sudo mkdir -p /opt/cni/bin \