Merge pull request #113604 from moshe010/cni-arch

fix local-up-cluster.sh to run on other arch than amd64
This commit is contained in:
Kubernetes Prow Robot 2022-11-04 09:36:47 -07:00 committed by GitHub
commit 63a62defda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 \