-
Notifications
You must be signed in to change notification settings - Fork 827
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 scripts related to k8s-artifacts-prod-vuln-dashboard #1643
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -372,44 +372,6 @@ color 6 "Handling special cases" | |
"${PROD_PROJECT}" \ | ||
$(svc_acct_email "${PROD_PROJECT}" "${PROMOTER_VULN_SCANNING_SVCACCT}") | ||
done | ||
|
||
color 6 "Ensuring prod promoter vuln-dashboard svcacct exists" | ||
ensure_service_account \ | ||
"${PROD_PROJECT}" \ | ||
"${VULN_DASHBOARD_SVCACCT}" \ | ||
"k8s-infra container image vuln dashboard" | ||
|
||
color 6 "Empowering promoter-scanning namespace to use prod promoter vuln-dashboard svcacct" | ||
for project in "${PROW_TRUSTED_BUILD_CLUSTER_PROJECTS[@]}"; do | ||
empower_ksa_to_svcacct \ | ||
"${project}.svc.id.goog[test-pods/k8s-infra-gcr-vuln-dashboard]" \ | ||
"${PROD_PROJECT}" \ | ||
$(svc_acct_email "${PROD_PROJECT}" "${VULN_DASHBOARD_SVCACCT}") | ||
done | ||
|
||
# Special case: grant the k8s-infra-gcr-vuln-dashboard account access to | ||
# write to the prod vuln dashboard GCS bucket. | ||
ensure_prod_gcs_bucket "${PROD_PROJECT}" "gs://${PROD_PROJECT}-vuln-dashboard" 2>&1 | indent | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this has been manually removed already |
||
|
||
color 6 "Empowering vuln-dashboard svcacct to vuln-dashboard bucket" | ||
empower_svcacct_to_write_gcs_bucket \ | ||
"$(svc_acct_email "${PROD_PROJECT}" "${VULN_DASHBOARD_SVCACCT}")" \ | ||
"gs://${PROD_PROJECT}-vuln-dashboard" | ||
|
||
# Special case: grant the k8s-infra-gcr-vuln-dashboard account access to | ||
# container analysis results for the prod project. | ||
color 6 "Empowering vuln-dashboard svcacct to prod vulnerability scanning" | ||
empower_service_account_for_cip_vuln_scanning \ | ||
"$(svc_acct_email "${PROD_PROJECT}" "${VULN_DASHBOARD_SVCACCT}")" \ | ||
"${PROD_PROJECT}" | ||
|
||
# Special case: don't use retention on vulnerability dashboard bucket | ||
# 'ci-release-vulndash-update' runs periodically in Prow and | ||
# requires access to overwrite the dashboard's html. | ||
# This should maybe one day be wired up as a Netlify site, but | ||
# one step at a time! | ||
color 6 "Removing retention on the ${PROD_PROJECT}-vuln-dashboard bucket" | ||
gsutil retention clear "gs://${PROD_PROJECT}-vuln-dashboard" | ||
) 2>&1 | indent | ||
|
||
color 6 "Done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove this post-merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed