File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
k8s-infra-prow-build-trusted Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ locals {
57
57
project_roles = [" roles/secretmanager.secretAccessor" ]
58
58
cluster_namespace = " kubernetes-external-secrets"
59
59
}
60
+ // also assigned roles by:
61
+ // - terraform/k8s-infra-prow
62
+ k8s-testgrid-config-updater = {
63
+ description = " writes TestGrid config to gs://k8s-testgrid-config"
64
+ }
60
65
}
61
66
}
62
67
Original file line number Diff line number Diff line change @@ -43,3 +43,30 @@ module "gcb_bucket" {
43
43
}
44
44
]
45
45
}
46
+
47
+ // Create gs://k8s-testgrid-config to store K8s TestGrid config.
48
+ module "testgrid_config_bucket" {
49
+ source = " terraform-google-modules/cloud-storage/google//modules/simple_bucket"
50
+ version = " ~> 5"
51
+
52
+ name = " k8s-testgrid-config"
53
+ project_id = module. project . project_id
54
+ location = " us"
55
+
56
+ lifecycle_rules = [{
57
+ action = {
58
+ type = " Delete"
59
+ }
60
+ condition = {
61
+ age = 90 # 90d
62
+ with_state = " ANY"
63
+ }
64
+ }]
65
+
66
+ iam_members = [
67
+ {
68
+ role = " roles/storage.objectAdmin"
69
+ member = " serviceAccount:k8s-testgrid-config-updater@k8s-infra-prow-build-trusted.iam.gserviceaccount.com"
70
+ }
71
+ ]
72
+ }
You can’t perform that action at this time.
0 commit comments