Skip to content

Commit

Permalink
Be less chatty when we're uploading to GCS
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerlynn committed Apr 3, 2015
1 parent 9d43285 commit 18a11c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -814,11 +814,11 @@ function kube::release::gcs::copy_release_artifacts() {
fi

# Now upload everything in release directory
gsutil -m "${gcs_options[@]+${gcs_options[@]}}" cp -r "${RELEASE_DIR}"/* "${gcs_destination}"
gsutil -q -m "${gcs_options[@]+${gcs_options[@]}}" cp -r "${RELEASE_DIR}"/* "${gcs_destination}"

# Having the "template" scripts from the GCE cluster deploy hosted with the
# release is useful for GKE. Copy everything from that directory up also.
gsutil -m "${gcs_options[@]+${gcs_options[@]}}" cp \
gsutil "${gcs_options[@]+${gcs_options[@]}}" cp \
"${RELEASE_STAGE}/full/kubernetes/cluster/gce/configure-vm.sh" \
"${gcs_destination}extra/gce/"

Expand All @@ -833,7 +833,7 @@ function kube::release::gcs::copy_release_artifacts() {
if [[ -d "${RELEASE_STAGE}/server/${platform}" ]]; then
src="${RELEASE_STAGE}/server/${platform}/kubernetes/server/bin/*"
fi
gsutil -m "${gcs_options[@]+${gcs_options[@]}}" cp \
gsutil -q -m "${gcs_options[@]+${gcs_options[@]}}" cp \
"$src" "$dst"
done

Expand All @@ -844,7 +844,7 @@ function kube::release::gcs::copy_release_artifacts() {

if [[ ${KUBE_GCS_MAKE_PUBLIC} =~ ^[yY]$ ]]; then
kube::log::status "Marking all uploaded objects public"
gsutil acl ch -R -g all:R "${gcs_destination}" >/dev/null 2>&1
gsutil -q acl ch -R -g all:R "${gcs_destination}" >/dev/null 2>&1
fi

gsutil ls -lhr "${gcs_destination}"
Expand Down

0 comments on commit 18a11c1

Please sign in to comment.