Skip to content
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

feat: migrate to GAR for runner images #94

Merged
merged 3 commits into from
Feb 23, 2021
Merged

feat: migrate to GAR for runner images #94

merged 3 commits into from
Feb 23, 2021

Conversation

bharathkkb
Copy link
Member

fixes #91

@comment-bot-dev
Copy link

comment-bot-dev commented Feb 20, 2021

Thanks for the PR! 🚀
✅ Lint checks have passed.

@@ -277,9 +282,6 @@ resource "google_organization_iam_member" "cloudbuild_serviceusage_consumer" {
org_id = var.org_id
role = "roles/serviceusage.serviceUsageConsumer"
member = "serviceAccount:${module.cloudbuild_project.project_number}@cloudbuild.gserviceaccount.com"
depends_on = [
google_project_service.cloudbuild_apis,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it safe to remove these? Previously there was race conditions with APIs being enabled & the SA existing in time for permissions to be applied.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't run issues when testing locally. Within PF we already have a dependency on API enablement before returning project_number here. Best approach would be to use the service identity returned directly. I will open a PR in PF to plumb that through.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@rjerrems rjerrems left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - A couple of small things but not blockers.

@rjerrems rjerrems mentioned this pull request Feb 21, 2021
@rjerrems
Copy link
Contributor

Should we mark this as a breaking change @bharathkkb or I suppose the older image in GCR will remain regardless since it is built with gcloud?

Can you also rebase from master :)

@bharathkkb
Copy link
Member Author

@rjerrems this should not be a breaking change as the older image will continue to live in GCR. Rerun would just create a new image in GAR and users can switch to GAR image if desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Artifact Registry for storing the Terraform image
3 participants