-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add EXTERNAL_MANAGED option to global forwarding rule and add example #5611
Add EXTERNAL_MANAGED option to global forwarding rule and add example #5611
Conversation
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. Thanks for your contribution! A human will be with you soon. @shuyama1, please review this PR or find an appropriate assignee. |
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.
Hi @AlexanderEllis! Would you mind following the instruction here to update resources coming from DCL. I believe running make upgrade-dcl
and then make serialize
should make changes generated. Thanks a lot!
Hi @shuyama1 , sure thing! I thought I had done that before, but I don't think it ended up making any additional changes beyond the 4 files (the I tried running it again, but I think I may have ran into an issue with Not sure if this is related to my change, but happy to debug further. |
c2c0710
to
9773678
Compare
Ah OK I think I figured it out, I hadn't rebased with the other changes in magic-modules. I did so, and it looks like it still only generated the four files: 2582c98 I believe I added the DCL right, and it looks like the auto import in the DCL repo included the samples: GoogleCloudPlatform/declarative-resource-client-library@f92a0d2 . Am I missing something with the import? |
On further review, I think this was already propagated in a previous PR upgrading the version (https://github.com/hashicorp/terraform-provider-google-beta/pull/3987/files#diff-855513ce3d7fa58a1e5c7435ff810420698b528e20322f1b96dc8fd049b90b08), so I think this is already set |
@AlexanderEllis Sorry for missing this. Somehow, it did not show up on my review list after you made the change. Really apologize for this. You are right. it looks like part of the code is already generated and pushed in a previous PR. One problem is that this a TF brownfield resource that we don't generate tests and documentation using tpgtools (DCL-based generator). Update: Looks like the tests and docs for this resource are generated from mmv1, and therefore the changes should be made from corresponding yaml files but not handwritten files. Updated my comment in case anyone reading this got confused. |
Also please re-request my review after you make the changes. Thanks a lot! |
2582c98
to
ab3bdbf
Compare
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 1 file changed, 58 insertions(+), 2 deletions(-)) |
Thanks again for your help, @shuyama1! I think I've updated it correctly here:
I also updated the PR and description to better reflect these changes 👍 |
/gcbrun |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 1 file changed, 58 insertions(+), 2 deletions(-)) |
/gcbrun |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 1 file changed, 58 insertions(+), 2 deletions(-)) |
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic|TestAccApigeeEnvironmentIamBindingGenerated|TestAccApigeeEnvironmentIamMemberGenerated|TestAccApigeeEnvironmentIamPolicyGenerated|TestAccCloudbuildWorkerPool_basic|TestAccComputeGlobalForwardingRule_globalForwardingRuleExternalManagedExample|TestAccContainerNodePool_withInvalidUpgradeSettings|TestAccServiceNetworkingPeeredDNSDomain_basic You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=247005 |
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.
@AlexanderEllis The tests passed! LGTM! I've changed a bit in the description and CHANGELOG. Can you confirm those changes are valid? Thank you so much!
Changes LGTM, thanks again! |
Great! Merging now! Thanks for the contribution :) |
This adds the EXTERNAL_MANAGED load balancing scheme option to the Global Forwarding Rule resource and adds an example that will generate tests.
This option was added in the DCL (the change was merged in a previous PR #5586), but I'm also adding it here so that it automatically generates the test and examples.
Fixes hashicorp/terraform-provider-google#10858
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)