File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,17 +104,6 @@ if [ -f "${CONTAINERD_HOME}/${CONTAINERD_ENV_METADATA}" ]; then
104104 source " ${CONTAINERD_HOME} /${CONTAINERD_ENV_METADATA} "
105105fi
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.
120109pkg_prefix=${CONTAINERD_PKG_PREFIX:- " cri-containerd-cni" }
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)
142131fi
143132
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
You can’t perform that action at this time.
0 commit comments