Skip to content

Commit 9ff02a2

Browse files
authored
create AR registries with lifecycle policies (#7913)
1 parent 3c317ab commit 9ff02a2

File tree

7 files changed

+201
-248
lines changed

7 files changed

+201
-248
lines changed

infra/gcp/bash/prow/OWNERS

Lines changed: 0 additions & 13 deletions
This file was deleted.

infra/gcp/bash/prow/ensure-e2e-projects.sh

Lines changed: 0 additions & 234 deletions
This file was deleted.

infra/gcp/infra.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# - consider breaking up into multiple files vs. one large file
3030
infra:
3131
e2e:
32-
managed_by: infra/gcp/bash/prow/ensure-e2e-projects.sh
32+
managed_by: infra/gcp/terraform/boskos/main.tf
3333
projects:
3434
# general purpose e2e projects, no quota changes
3535
k8s-infra-e2e-boskos-001:

infra/gcp/terraform/boskos/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Boskos Terraform Module
2+
3+
This folder defines the configuration of all the boskos projects.

infra/gcp/terraform/boskos/iam.tf

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
Copyright 2025 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
# We grant all the boskos permissions on the folder and they get inherited
18+
module "folder_iam" {
19+
source = "terraform-google-modules/iam/google//modules/folders_iam"
20+
version = "~> 8.1"
21+
folders = [google_folder.boskos.id]
22+
mode = "authoritative"
23+
24+
bindings = {
25+
"organizations/758905017065/roles/prow.viewer" : [
26+
27+
]
28+
"roles/cloudkms.admin" = [
29+
"serviceAccount:[email protected]"
30+
]
31+
"roles/cloudkms.cryptoKeyEncrypterDecrypter" = [
32+
"serviceAccount:[email protected]"
33+
]
34+
"roles/editor" = [
35+
"serviceAccount:[email protected]",
36+
"serviceAccount:[email protected]"
37+
]
38+
"roles/owner" = [
39+
40+
]
41+
"roles/iam.serviceAccountUser" = [
42+
"serviceAccount:[email protected]"
43+
]
44+
"roles/secretmanager.admin" = [
45+
"serviceAccount:[email protected]"
46+
]
47+
}
48+
49+
}

0 commit comments

Comments
 (0)