Skip to content

Commit ed671b6

Browse files
authored
Merge pull request kubernetes#1390 from justaugustus/vulndash-bucket-retention
infra: Disable retention policy on k8s-artifacts-prod-vuln-dashboard
2 parents bc5b149 + a406279 commit ed671b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

infra/gcp/ensure-prod-storage.sh

+8
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,14 @@ color 6 "Handling special cases"
402402
empower_service_account_for_cip_vuln_scanning \
403403
"$(svc_acct_email "${PROD_PROJECT}" "${VULN_DASHBOARD_SVCACCT}")" \
404404
"${PROD_PROJECT}"
405+
406+
# Special case: don't use retention on vulnerability dashboard bucket
407+
# 'ci-release-vulndash-update' runs periodically in Prow and
408+
# requires access to overwrite the dashboard's html.
409+
# This should maybe one day be wired up as a Netlify site, but
410+
# one step at a time!
411+
color 6 "Removing retention on the ${PROD_PROJECT}-vuln-dashboard bucket"
412+
gsutil retention clear "gs://${PROD_PROJECT}-vuln-dashboard"
405413
) 2>&1 | indent
406414

407415
color 6 "Done"

0 commit comments

Comments
 (0)