-
Notifications
You must be signed in to change notification settings - Fork 148
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(modules)!: enable cloudbuildv2 repository support on tf_cloudbuild_builder and tf_cloudbuild_workspace #299
Conversation
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
test/integration/tf_cloudbuild_builder_simple/tf_cloudbuild_builder_simple_test.go
Outdated
Show resolved
Hide resolved
/gcbrun |
/gcbrun |
/gcbrun |
@apeabody Could you PTAL again? |
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 for the contribution! This is currently marked as a breaking change, but I wonder if that could be avoided if we keep more of the sub-module variable defaults?
/gcbrun |
/gcbrun |
@@ -70,7 +70,7 @@ variable "gar_repo_name" { | |||
variable "gar_repo_location" { | |||
description = "Name of the location for the Google Artifact Repository." | |||
type = string | |||
default = "us" | |||
default = "us-central1" |
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.
I think it's probably better to remove the default entirely, rather than change the default value. That way during an module upgrade an error is surfaced if using the default, rather than the value unexpectedly changing.
@@ -94,12 +94,19 @@ variable "trigger_name" { | |||
variable "trigger_location" { | |||
description = "Location of the Cloud Build trigger building the Terraform builder. If using private pools should be the same location as the pool." | |||
type = string | |||
default = "global" | |||
default = "us-central1" |
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.
same
@@ -28,7 +28,7 @@ variable "location" { | |||
variable "trigger_location" { | |||
description = "Location of for Cloud Build triggers created in the workspace. If using private pools should be the same location as the pool." | |||
type = string | |||
default = "global" | |||
default = "us-central1" |
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.
same
/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!
tf_cloudbuild_builder module:
source_to_build
argument for cloudbuildv2 repository, in this case the user shall not specifydockerfile_repo_uri
(it is used for CSR) and specify the variabledockerfile_repo_id
with the cloudbuildv2 id.tf_cloudbuild_workspace module:
tf_repo_type
calledCLOUDBUILD_V2_REPOSITORY
that shall be used when specifying a cloudbuildv2 repository oncloudbuildv2_repository_id
variable