Skip to content

Commit

Permalink
fix tesgrid permissions (#3569)
Browse files Browse the repository at this point in the history
  • Loading branch information
upodroid authored Oct 13, 2022
1 parent cf948a2 commit f6496f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
19 changes: 4 additions & 15 deletions infra/gcp/tests/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ module "iam" {
"serviceAccount:[email protected]",
]

"roles/container.clusterAdmin" = [
],

"roles/iam.serviceAccountTokenCreator" = [
],

"roles/iam.serviceAccountUser" : [
],


"roles/logging.logWriter" = [
"serviceAccount:${google_service_account.gke_nodes.email}",
]
Expand All @@ -44,17 +34,16 @@ module "iam" {
"serviceAccount:${google_service_account.grafana.email}",
]

"roles/owner" = [
"group:[email protected]", # Google OSS Kubernetes oncall team
]

"roles/pubsub.editor" : [
"serviceAccount:[email protected]"
],

"roles/secretmanager.secretAccessor" : [
"serviceAccount:kubernetes-external-secrets-sa@knative-tests.iam.gserviceaccount.com",
"serviceAccount:[email protected]"
],

"roles/secretmanager.viewer" : [
"serviceAccount:kubernetes-external-secrets-sa@knative-tests.iam.gserviceaccount.com"
],

"roles/stackdriver.resourceMetadata.writer" = [
Expand Down
3 changes: 3 additions & 0 deletions infra/gcp/tests/prow.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ resource "google_service_account_iam_binding" "testgrid_updater" {

members = [
"serviceAccount:knative-tests.svc.id.goog[test-pods/testgrid-updater]",
"serviceAccount:k8s-testgrid.svc.id.goog[knative/summarizer]",
"serviceAccount:k8s-testgrid.svc.id.goog[knative/tabulator]",
"serviceAccount:k8s-testgrid.svc.id.goog[knative/updater]",
]
}

Expand Down

0 comments on commit f6496f2

Please sign in to comment.