Skip to content

Commit e8b22c1

Browse files
committed
Revert "[release/1.6] support fetching containerd from non public GCS buckets"
Signed-off-by: Akhil Mohan <[email protected]>
1 parent 78f5177 commit e8b22c1

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

contrib/gce/configure.sh

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,6 @@ if [ -f "${CONTAINERD_HOME}/${CONTAINERD_ENV_METADATA}" ]; then
104104
source "${CONTAINERD_HOME}/${CONTAINERD_ENV_METADATA}"
105105
fi
106106

107-
set +x
108-
# GCS_BUCKET_TOKEN_METADATA is the metadata key for the GCS bucket token
109-
GCS_BUCKET_TOKEN_METADATA="GCS_BUCKET_TOKEN"
110-
# GCS_BUCKET_TOKEN should have read access to the bucket from which
111-
# containerd artifacts need to be downloaded
112-
GCS_BUCKET_TOKEN=$(fetch_metadata "${GCS_BUCKET_TOKEN_METADATA}")
113-
if [[ -n "${GCS_BUCKET_TOKEN}" ]]; then
114-
HEADERS=(-H "Authorization: Bearer ${GCS_BUCKET_TOKEN}")
115-
fi
116-
set -x
117-
118107
# CONTAINERD_PKG_PREFIX is the prefix of the cri-containerd tarball name.
119108
# By default use the release tarball with cni built in.
120109
pkg_prefix=${CONTAINERD_PKG_PREFIX:-"cri-containerd-cni"}
@@ -137,7 +126,7 @@ else
137126

138127
# TODO(random-liu): Put version into the metadata instead of
139128
# deciding it in cloud init. This may cause issue to reboot test.
140-
version=$(set +x; curl -X GET "${HEADERS[@]}" -f --ipv4 --retry 6 --retry-delay 3 --silent --show-error \
129+
version=$(curl -f --ipv4 --retry 6 --retry-delay 3 --silent --show-error \
141130
https://storage.googleapis.com/${deploy_path}/latest)
142131
fi
143132

@@ -163,8 +152,7 @@ else
163152
echo "${TARBALL_GCS_NAME} is preloaded"
164153
else
165154
# Download and untar the release tar ball.
166-
$(set +x; curl -X GET "${HEADERS[@]}" -f --ipv4 -Lo "${TARBALL}" --connect-timeout 20 --max-time 300 --retry 6 \
167-
--retry-delay 10 "${TARBALL_GCS_PATH}")
155+
curl -f --ipv4 -Lo "${TARBALL}" --connect-timeout 20 --max-time 300 --retry 6 --retry-delay 10 "${TARBALL_GCS_PATH}"
168156
tar xvf "${TARBALL}"
169157
rm -f "${TARBALL}"
170158
fi

0 commit comments

Comments
 (0)