-
Notifications
You must be signed in to change notification settings - Fork 190
INTMDB-300: Advance Cluster resource ignoring the autoscaling options #686
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
Conversation
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.
LGTM, just needs internal reviewer.
apiObject.DiskGB = apiObject2 | ||
apiObject.Compute = apiObject3 |
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.
This name is not helpful. Could we rename apiObject
to advancedAutoScaling
, apiObject2
to diskGB
and apiObject3
to compute
?
@@ -842,6 +842,9 @@ func expandRegionConfigAutoScaling(tfList []interface{}) *matlas.AdvancedAutoSca | |||
apiObject3.MaxInstanceSize = v.(string) | |||
} | |||
|
|||
apiObject.DiskGB = apiObject2 | |||
apiObject.Compute = apiObject3 | |||
|
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.
Could we update resource_mongodbatlas_advanced_cluster_test.go
to include the autoscaling attributes? Thanks!
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.
LGTM. Thanks for all the changes
…mongodb#686) * Advance Cluster resource ignoring the autoscaling options * Refactor and add additional test case * Add test parameters * Add support for autoscaling parameter tests * lint fix Co-authored-by: admin <[email protected]>
Description
Please include a summary of the fix/feature/change, including any relevant motivation and context.
Link to any related issue(s):
Type of change:
Required Checklist:
Further comments