File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
infra/gcp/terraform/k8s-infra-prow Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ module "testgrid_config_bucket" {
8282 ]
8383}
8484
85- // Create gs://k8s -ci-logs to store logs from Prow jobs.
85+ // Create gs://kubernetes -ci-logs to store logs from Prow jobs.
8686module "prow_bucket" {
8787 source = " terraform-google-modules/cloud-storage/google//modules/simple_bucket"
8888 version = " ~> 5"
@@ -144,3 +144,30 @@ resource "google_pubsub_topic" "kubernetes_ci_logs_topic" {
144144 name = " kubernetes-ci-logs-updates"
145145 project = module. project . project_id
146146}
147+
148+ // Create gs://kubernetes-security-ci-logs private bucket to store logs from Prow jobs running in
149+ // the kubernetes-security org.
150+ module "prow_security_bucket" {
151+ source = " terraform-google-modules/cloud-storage/google//modules/simple_bucket"
152+ version = " ~> 5"
153+
154+ name = " kubernetes-security-ci-logs"
155+ project_id = module. project . project_id
156+ location = " us-central1"
157+ lifecycle_rules = [{
158+ action = {
159+ type = " Delete"
160+ }
161+ condition = {
162+ age = 30 # 30d
163+ with_state = " ANY"
164+ }
165+ }]
166+
167+ iam_members = [
168+ {
169+ role = " roles/storage.objectAdmin"
170+ member = " serviceAccount:${ google_service_account . prow . email } "
171+ },
172+ ]
173+ }
You can’t perform that action at this time.
0 commit comments