-
Notifications
You must be signed in to change notification settings - Fork 147
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(module): add cloudbuild connection module #312
feat(module): add cloudbuild connection module #312
Conversation
/gcbrun |
1 similar comment
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
test/integration/cloudbuild_repo_connection_github/cloudbuild_repo_connection_github_test.go
Outdated
Show resolved
Hide resolved
/gcbrun |
/gcbrun |
/gcbrun |
Co-authored-by: Andrew Peabody <[email protected]>
/gcbrun |
/gcbrun |
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.
Thanks @caetano-colin! A few minor things I noted during the final review.
test/integration/cloudbuild_repo_connection_gitlab/cloudbuild_repo_connection_gitlab_test.go
Outdated
Show resolved
Hide resolved
test/integration/cloudbuild_repo_connection_github/cloudbuild_repo_connection_github_test.go
Outdated
Show resolved
Hide resolved
@apeabody thank you for the review! I implemented the requested changes. Regarding the module registry version I put: version = "~> 9.0" I'm assuming that would be the module version, If that is not correct please let me know. |
Yeah, that should be fine for now. Thanks! |
/gcbrun |
@caetano-colin - The last INT test didn't complete before timeout, might want to bump slightly: https://github.com/terraform-google-modules/terraform-google-bootstrap/blob/master/build/int.cloudbuild.yaml#L15 |
@gtsorbo do you want to review before merging? |
Created a commit that increases the timeout in 10minutes |
/gcbrun |
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.
LGTM
This PR will add the module
cloudbuild_repo_connection
.This module is designed to create and manage secret versions, as well as configure the necessary permissions for cloud build service agent when utilizing Cloud Build repositories (2nd generation).
Additionally, it will establish the corresponding Cloud Build repositories based on the
cloudbuild_repos
variable, where users can specify the repository names and URLs from their version control systems.Users will provide the required secrets through the
credential_config
variable, indicating their chosen Git provider. Currently, the module supports both GitHub and GitLab.