-
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
Change stateful_internal|external_ips to Set from List #11441
base: FEATURE-BRANCH-major-release-6.0.0
Are you sure you want to change the base?
Change stateful_internal|external_ips to Set from List #11441
Conversation
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: 978 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
mmv1/third_party/terraform/services/compute/resource_compute_instance_group_manager.go.erb
Show resolved
Hide resolved
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @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. |
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: 978 Click here to see the affected service packages
View the build log |
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.
Would you mind also adding an entry in the upgrade guide following step 4 in https://googlecloudplatform.github.io/magic-modules/develop/breaking-changes/make-a-breaking-change/#make-the-change-on-feature-branch-major-release-600.
Thanks!
@@ -414,25 +414,6 @@ func TestAccRegionInstanceGroupManager_stoppedSuspendedTargetSize(t *testing.T) | |||
} | |||
<% end -%> | |||
|
|||
func TestAccRegionInstanceGroupManager_APISideListRecordering(t *testing.T) { |
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 wonder if we want to keep this test to ensure the change from list to set works, like it also wouldn't cause permadiff for multiple stateful_internal_ip/stateful_external_ip attributes configurations.
func flattenStatefulPolicyStatefulInternalIps(d *schema.ResourceData, statefulPolicy *compute.StatefulPolicy) []map[string]interface{} { | ||
if statefulPolicy == nil || statefulPolicy.PreservedState == nil || statefulPolicy.PreservedState.InternalIPs == nil { | ||
return make([]map[string]interface{}, 0, 0) | ||
func flattenStatefulPolicyStatefulInternalIps(statefulPolicy *compute.StatefulPolicy) []map[string]interface{} { |
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 suspect if this flattener will work as intended. Let's bring back the test first and see it works
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 did run the tests before removing it.
looks like this is going to miss the contribution cutoff date for 6.0 (today) |
I do not really understand how it should work for this case - there is nothing to do wrt. upgrade - for the customers the change is invisible (the same configurations that worked will continue to work). Sorry about missing the cutoff (luckily this change is really not important), I got sick and couldn't work on it. |
@shuyama1 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
The 6.0 release cut is complete, so I'll move this PR to draft for now. Please feel free to reach out if you have any questions regarding this change. If you decide to proceed with this update, it will need to wait until the next major release, but I’m happy to assist along the way. |
Change stateful_internal|external_ips to Set from List. This solves all issues with ordering. All reordering code removed from IGMs.
fixes: hashicorp/terraform-provider-google#13430
Release Note Template for Downstream PRs (will be copied)