-
Notifications
You must be signed in to change notification settings - Fork 167
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: Adds global_cluster_self_managed_sharding
to mongodbatlas_advanced_cluster
resource
#2348
Conversation
APIx bot: a message has been sent to Docs Slack channel |
resource.TestCheckResourceAttrSet(dataSourcePluralName, "results.#"), | ||
resource.TestCheckResourceAttrSet(dataSourcePluralName, "results.0.replication_specs.#"), | ||
resource.TestCheckResourceAttrSet(dataSourcePluralName, "results.0.name"), | ||
resource.TestCheckResourceAttrSet(dataSourcePluralName, "results.0.termination_protection_enabled"), | ||
resource.TestCheckResourceAttrSet(dataSourcePluralName, "results.0.global_cluster_self_managed_sharding"), |
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 like to see these checks refactored 😅
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.
good point, ticket created to do it in a following PR: https://jira.mongodb.org/browse/CLOUDP-256561
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.
Nice. Only some knit comments :D
numShardsUpdated = "2" | ||
orgID = os.Getenv("MONGODB_ATLAS_ORG_ID") | ||
projectName = acc.RandomProjectName() | ||
clusterName = acc.RandomClusterName() // No ProjectIDExecution to avoid cross-region limits because multi-region |
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.
should this comment be on the line above? same for the other test
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.
thx, changed
name = %[2]q | ||
|
||
cluster_type = "REPLICASET" | ||
global_cluster_self_managed_sharding = true |
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.
nit: could we add a small comment here why this config is incorrect?
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.
thx, comment added
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!
Description
Adds
global_cluster_self_managed_sharding
tomongodbatlas_advanced_cluster
resource and corresponding data sources.Link to any related issue(s): CLOUDP-256265
Type of change:
Required Checklist:
Further comments