-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix: google_service_networking_connection perma-diff on reserved_peering_ranges #16191
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
base: main
Are you sure you want to change the base?
Fix: google_service_networking_connection perma-diff on reserved_peering_ranges #16191
Conversation
|
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @shuyama1, 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. |
0153735 to
5277d17
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.
Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. |
Tests analyticsTotal tests: 9 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
shuyama1
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.
Thanks for the fix. It seems reasonable, but changing from list to set is a breaking change and needs to wait until the next major release
Description
Fixes #20398
This PR resolves a perma-diff issue in
google_service_networking_connectionwhere the order ofreserved_peering_rangescaused Terraform to detect changes during every plan, even if the set of ranges remained identical.Changes
reserved_peering_rangesfromTypeListtoTypeSetinresource_service_networking_connection.go(and addedunordered_list: trueto metadata).TestAccServiceNetworkingConnection_reordertoresource_service_networking_connection_test.goto verify that changing the order of ranges does not trigger an update.Breaking Change Note
This changes the schema type from
ListtoSet.tpgresource.ConvertStringArrhandles the conversion via.List(). Please review if a specific StateUpgrader is required for this resource, or if the standard Terraform refresh is sufficient for this string set.Verification
I have verified this locally by running the new acceptance test:
make testacc TEST=./google/services/servicenetworking TESTARGS='-run TestAccServiceNetworkingConnection_reorder'Result: PASS