-
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
feat: Serverless VPC Access Connector update fields without recreating the resource #12830
base: main
Are you sure you want to change the base?
feat: Serverless VPC Access Connector update fields without recreating the resource #12830
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
4e30f30
to
d271a32
Compare
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @rileykarson, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Unrelated question to the PR: Is there a good way to find out which fields are mutable/immutable on the GCP API Endpoints? As far I can see this is not something that the endpoint documentation provides (or I am blind). I had to find out via a combination of checking the GCP Console UI, but then I realized that maybe some fields could be supported via API only. Then I saw this message when running the tests the first time:
And then I figured these were the fields, probably there is a simpler way. |
I haven't found one! Those match the steps I'd take personally. |
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.
|
Tests analyticsTotal tests: 7 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
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.
Comments inline. Re: failed tests:
TestAccVPCAccessConnectorDatasource_basic
- Error: Error waiting to create Connector: Error waiting for Creating Connector: Error code 3, message: Operation failed: Invalid IP CIDR range was provided. It conflicts with an existing subnetwork. Please delete the connector manually.
so we'll need to pick a diff. CIDR.
TestAccVPCAccessConnector_vpcAccessConnectorThroughput_usingThroughputOrInstancesLimits
was doing a recreation internally before this change and attempts to update now- that's a bit of a weird test and should be split up, but this change does interact unusually with the min_/max_ instance and throughput fields and can create invalid updates. Let me see if I can think of a good mitigation.
mmv1/third_party/terraform/services/vpcaccess/data_source_vpc_access_connector_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/vpcaccess/data_source_vpc_access_connector_test.go
Outdated
Show resolved
Hide resolved
Thanks for your review! @rileykarson Just reverted the datasource changes, I see the original test was already using In |
Solves hashicorp/terraform-provider-google#20814
Added functionality so that updates on the fields [
min_instances
,max_instances
,machine_type
] for thegoogle_vpc_access_connector
resource will not cause recreation, and use the underlaying projects.locations.connectors/patch endpoint instead to update in-place.Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.