-
Notifications
You must be signed in to change notification settings - Fork 248
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
[infra] Make CI an admin of the artifact registry #14266
Conversation
I've already applied these changes. |
@@ -527,15 +527,6 @@ module "ci_gsa_secret" { | |||
] | |||
} | |||
|
|||
resource "google_artifact_registry_repository_iam_member" "artifact_registry_viewer" { | |||
provider = google-beta |
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.
Was this just duplicated and not used?
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.
ya, I checked that it's the same as the other block. I guess terraform didn't have a problem with two role assignments that are the same and just treated it like a no-op.
Our k8s cluster does not support those old beta versions of pdb.
Already applied.
If CI jobs are to apply cleanup policies to the Artifact Registry, CI needs to have the permissions on the AR to do so. Prior to this change, CI only had viewer on the AR and used a different service account named
gcr-push
to push images to the registry. I don't see the point in having this second service account and think that CI should have these permissions (because it basically does already if it can submit jobs with thegcr-push
service account). So the main point of this PR is to give CI admin on the AR, and then we can follow up by deleting thegcr-push
service account.Separately:
Not sure how this ever worked, but I needed to update the google terraform provider to get
cleanup_policy_dry_run = false
. That upgrade now made the DNS zone description mandatory so I added one. I thin the DNS zone is no longer used, but removing it is for another time. There was also for some reason a duplicate resource for CI's viewer role on the AR repo, so I changed one to admin and deleted the other.cc @ehigham