Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove retention policy for staging buckets #116222

Merged
merged 1 commit into from Mar 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions cluster/gce/util.sh
Expand Up @@ -326,16 +326,17 @@ function upload-tars() {
local node_binary_tar_urls=()

for region in "${PREFERRED_REGION[@]}"; do
retention_period="1d" # https://cloud.google.com/storage/docs/bucket-lock#retention-periods
suffix="-${region}"
local staging_bucket="gs://kubernetes-staging-${project_hash}${suffix}"

# Ensure the buckets are created
if ! gsutil ls "${staging_bucket}" >/dev/null; then
echo "Creating ${staging_bucket}"
gsutil mb -l "${region}" -p "${PROJECT}" --retention "${retention_period}" "${staging_bucket}"
gsutil mb -l "${region}" -p "${PROJECT}" "${staging_bucket}"
BenTheElder marked this conversation as resolved.
Show resolved Hide resolved
fi

gsutil retention clear "${staging_bucket}"

local staging_path="${staging_bucket}/${INSTANCE_PREFIX}-devel"

echo "+++ Staging tars to Google Storage: ${staging_path}"
Expand Down