-
Notifications
You must be signed in to change notification settings - Fork 2.1k
CloudBuild V2 Connection IAM resources #6778
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
CloudBuild V2 Connection IAM resources #6778
Conversation
| @@ -0,0 +1,10 @@ | |||
| { | |||
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.
Why are these examples necessary for the IAM resources?
Isn't this feature for the private provider? I see it's being added to magic-modules 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.
Those commits are actually from #6756. The connection IAM specific changes are in the single most recent commit
1c44f80 to
d85c77a
Compare
d85c77a to
62fa33e
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 4 files changed, 667 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccCloudbuildv2Connection_GithubConnection|TestAccCloudbuildv2Connection_GhePrivUpdateConnection|TestAccCloudbuildv2Connection_GhePrivConnection|TestAccCloudbuildv2Connection_GheConnection|TestAccCloudbuildv2Connection_GheCompleteConnection|TestAccCloudbuildv2Repository_GithubRepository|TestAccCloudbuildv2Repository_GheRepository|TestAccCloudBuildv2ConnectionIamPolicyGenerated|TestAccCloudBuildv2ConnectionIamMemberGenerated|TestAccCloudBuildv2ConnectionIamBindingGenerated|TestAccContainerCluster_withInvalidGatewayApiConfigChannel |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
62fa33e to
cdc5e6b
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 4 files changed, 667 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccCloudBuildv2ConnectionIamPolicyGenerated|TestAccCloudBuildv2ConnectionIamMemberGenerated|TestAccCloudBuildv2ConnectionIamBindingGenerated|TestAccRegionInstanceGroupManager_stateful|TestAccCloudbuildv2Connection_GhePrivConnection|TestAccCloudbuildv2Connection_GheConnection|TestAccCloudbuildv2Connection_GheCompleteConnection|TestAccCloudbuildv2Repository_GithubRepository|TestAccCloudbuildv2Repository_GheRepository|TestAccCloudbuildv2Connection_GithubConnection|TestAccCloudbuildv2Connection_GhePrivUpdateConnection |
|
Tests failed during RECORDING mode: Please fix these to complete your PR |
|
Note: We'll need to rebase on top of #7157 for this change! |
cdc5e6b to
301920d
Compare
|
Rebased on top of main (includes #7157) |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 1 file changed, 154 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaserulesRelease_BasicRelease|TestAccContainerCluster_failedCreation|TestAccCloudBuildv2ConnectionIamBindingGenerated|TestAccCloudBuildv2ConnectionIamPolicyGenerated|TestAccCloudBuildv2ConnectionIamMemberGenerated |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
| @@ -0,0 +1,16 @@ | |||
| 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.
| 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.
I beleive this is added by the test framework implicitly, so we can exclude it! It's likely the source of the error right now:
Error: Duplicate provider configuration
on terraform_plugin_test.tf line 3:
3: provider "google-beta" {}
A default (non-aliased) provider configuration for "google-beta" was already
given at terraform_plugin_test.tf:1,1-23. If multiple configurations are
required, set the "alias" argument for alternative configurations.
testing_new.go:73: Error retrieving state, there may be dangling resources: exit status 1
Error: Duplicate provider configuration
on terraform_plugin_test.tf line 3:
3: provider "google-beta" {}
A default (non-aliased) provider configuration for "google-beta" was already
given at terraform_plugin_test.tf:1,1-23. If multiple configurations are
required, set the "alias" argument for alternative configurations.
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.
Done.
| @@ -0,0 +1,16 @@ | |||
| provider "google-beta" {} | |||
|
|
|||
| resource "google_project" "project" { | |||
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.
Do we need to use a new project here, or can we manage these resources in an existing one?
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.
Removed project.
301920d to
d79bfff
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 1 file changed, 154 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccRegionInstanceGroupManager_stateful|TestAccContainerCluster_failedCreation|TestAccCloudBuildv2ConnectionIamPolicyGenerated|TestAccCloudBuildv2ConnectionIamMemberGenerated|TestAccCloudBuildv2ConnectionIamBindingGenerated |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
mmv1/templates/terraform/examples/cloudbuildv2_connection.tf.erb
Outdated
Show resolved
Hide resolved
e1e521d to
889e3f6
Compare
889e3f6 to
6ca37f3
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 1 file changed, 154 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccRegionInstanceGroupManager_stateful|TestAccContainerCluster_failedCreation|TestAccFirebaserulesRelease_BasicRelease|TestAccCloudBuildv2ConnectionIamPolicyGenerated|TestAccCloudBuildv2ConnectionIamMemberGenerated|TestAccCloudBuildv2ConnectionIamBindingGenerated |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
rileykarson
left a comment
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.
Generally LGTM. Noticed a minor inconsistency in some of the generated custom URL stuff- suggestions inline. Sorry for the extra round trip!
Co-authored-by: Riley Karson <[email protected]>
Co-authored-by: Riley Karson <[email protected]>
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 1 file changed, 154 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaserulesRelease_BasicRelease|TestAccRegionInstanceGroupManager_stateful|TestAccContainerCluster_failedCreation|TestAccCloudbuildv2ConnectionIamBindingGenerated|TestAccCloudbuildv2ConnectionIamMemberGenerated|TestAccCloudbuildv2ConnectionIamPolicyGenerated |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
rileykarson
left a comment
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.
Those tests are newly failing for the right reason here! Both MMv1 and tpgtools (DCL) support custom basepaths, but they're not both compatible with each other- MMv1 configures a default URL in Terraform and uses that, assuming a URL is always present, while DCL stores the default internally and defaults to empty in Terraform. When they conflict, tpgtools wins, causing an empty URL.
tpgtools is compatible with MMv1's generated code- we end up overriding DCL's internal default with Terraform's (identical) default. We can turn off DCL generation. You should just need to add an override like
| - type: PRODUCT_BASE_PATH | |
| details: | |
| skip: true |
|
(normally we'd have a compilation error instead of the one we got, but actually hooking up the Terraform part for new DCL services is manual and we missed doing that for this Cloud Build v2) |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 1 file changed, 154 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccRegionInstanceGroupManager_stateful|TestAccCloudbuildv2ConnectionIamPolicyGenerated|TestAccCloudbuildv2ConnectionIamMemberGenerated|TestAccCloudbuildv2ConnectionIamBindingGenerated |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
Co-authored-by: Riley Karson <[email protected]> Co-authored-by: Mario Machado <[email protected]>
Co-authored-by: Riley Karson <[email protected]> Co-authored-by: Mario Machado <[email protected]>
Depends on PR#6756
If this PR is for Terraform, I acknowledge that I have:
make testandmake lintto ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)