Only cache ETCD tarballs for amd64.

Multiarch versions of ETCD only exist for v3.2.x, this means when we
try to cache etcd-v3.1.10-linux-arm64.tar.gz for nodepool-builder, we
are not able to find it.  Breaking our image builds.

Change-Id: I61656cbd71173b1904c7fe70af91b3873acc4d50
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-04-01 20:47:30 -04:00
parent ca62e563f2
commit b543369a25
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 6 additions and 1 deletions

View File

@ -771,7 +771,12 @@ ETCD_NAME=etcd-$ETCD_VERSION-linux-$ETCD_ARCH
ETCD_DOWNLOAD_FILE=$ETCD_NAME.tar.gz
ETCD_DOWNLOAD_LOCATION=$ETCD_DOWNLOAD_URL/$ETCD_VERSION/$ETCD_DOWNLOAD_FILE
# etcd is always required, so place it into list of pre-cached downloads
EXTRA_CACHE_URLS+=",$ETCD_DOWNLOAD_LOCATION"
if is_arch "x86_64"; then
# NOTE(pabelanger): Only v3.2.x of ETCD has support for multiarch. This
# means on stable branches our version is too old to try and cache and will
# 404 DIBs for nodpeool.
EXTRA_CACHE_URLS+=",$ETCD_DOWNLOAD_LOCATION"
fi
# Detect duplicate values in IMAGE_URLS
for image_url in ${IMAGE_URLS//,/ }; do