-
Notifications
You must be signed in to change notification settings - Fork 178
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: Ensures asymmetric auto-scaling is not defined in the cluster when using the old sharding configuration in mongodbatlas_advanced_cluster
#2836
Conversation
mongodbatlas_advanced_cluster
mongodbatlas_advanced_cluster
@oarbusi cc @EspenAlbert as this is a change to adv_cluster that is not done also in tpf, can you please update the readme file so we don't miss to do this in tpf? https://github.com/mongodb/terraform-provider-mongodbatlas/tree/master/internal/service/advancedclustertpf#changes-in-advancedcluster-that-needs-to-be-added-here |
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! Some minor suggestions
internal/service/advancedcluster/model_advanced_cluster_test.go
Outdated
Show resolved
Hide resolved
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!
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!
Test failure is not related to this PR. Merging anyway |
249c425
into
CLOUDP-256272-auto-scaling-per-shard
Description
Uses old SDK version when the old schema structure is used for
mongodbatlas_advanced_cluster
This has been also tested manually creating these 2 clusters:
and then checking for the auto-scaling mode of each cluster.
For the cluster named
OLD-SCHEMA-CLUSTER
it is"autoScalingMode" : "CLUSTER",
For the cluster named
NEW-SCHEMA-CLUSTER
it is"autoScalingMode" : "SHARD",
Link to any related issue(s): CLOUDP-285705
Type of change:
Required Checklist:
Further comments