Merge pull request #92668 from michaelmdresser/fix-kubeup-acls-mb

Fix an unnecessary failure during kube-up during bucket ACL setting and make bucket in the configured project
This commit is contained in:
Kubernetes Prow Robot 2020-07-01 23:14:27 -07:00 committed by GitHub
commit adf2cd40ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,7 +241,7 @@ function copy-to-staging() {
echo "${hash}" > "${tar}.sha1"
gsutil -m -q -h "Cache-Control:private, max-age=0" cp "${tar}" "${tar}.sha1" "${staging_path}"
gsutil -m acl ch -g all:R "${gs_url}" "${gs_url}.sha1" >/dev/null 2>&1
gsutil -m acl ch -g all:R "${gs_url}" "${gs_url}.sha1" >/dev/null 2>&1 || true
echo "+++ ${basename_tar} uploaded (sha1 = ${hash})"
}
@ -338,7 +338,7 @@ function upload-tars() {
# Ensure the buckets are created
if ! gsutil ls "${staging_bucket}" >/dev/null; then
echo "Creating ${staging_bucket}"
gsutil mb -l "${region}" "${staging_bucket}"
gsutil mb -l "${region}" -p "${PROJECT}" "${staging_bucket}"
fi
local staging_path="${staging_bucket}/${INSTANCE_PREFIX}-devel"