Skip to content

chore: Reverts cluster deprecation #2498

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

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .changelog/2450.txt

This file was deleted.

3 changes: 0 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ NOTES:

* data-source/mongodbatlas_advanced_cluster: Deprecates `replication_specs.#.id`, `replication_specs.#.num_shards`, `disk_size_gb`, `advanced_configuration.0.default_read_concern`, and `advanced_configuration.0.fail_index_key_too_long`. To learn more, see the [1.18.0 Migration Guide](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/1.18.0-upgrade-guide). ([#2420](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/2420))
* data-source/mongodbatlas_advanced_clusters: Deprecates `replication_specs.#.id`, `replication_specs.#.num_shards`, `disk_size_gb`, `advanced_configuration.0.default_read_concern`, and `advanced_configuration.0.fail_index_key_too_long`. To learn more, see the [1.18.0 Migration Guide](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/1.18.0-upgrade-guide). ([#2420](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/2420))
* data-source/mongodbatlas_cluster: Deprecates data source in favour of `mongodbatlas_advanced_cluster` ([#2450](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/2450))
* data-source/mongodbatlas_clusters: Deprecates data source in favour of `mongodbatlas_advanced_clusters` ([#2450](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/2450))
* resource/mongodbatlas_advanced_cluster: Deprecates `replication_specs.#.id`, `replication_specs.#.num_shards`, `disk_size_gb`, `advanced_configuration.0.default_read_concern`, and `advanced_configuration.0.fail_index_key_too_long`. To learn more, see the [1.18.0 Migration Guide](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/1.18.0-upgrade-guide). ([#2420](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/2420))
* resource/mongodbatlas_advanced_cluster: Using this new version impacts the possibility of editing the definition of multi shard clusters in the Atlas UI. This impact is limited to the first weeks of August. ([#2478](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/2478))
* resource/mongodbatlas_cluster: Deprecates resource in favour of `mongodbatlas_advanced_cluster` ([#2450](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/2450))

ENHANCEMENTS:

Expand Down
6 changes: 0 additions & 6 deletions docs/data-sources/cluster.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
subcategory: "Deprecated"
---

**WARNING:** This data source is deprecated, use `mongodbatlas_advanced_cluster`. To learn more, see the [Migration Guide](../guides/cluster-to-advanced-cluster-migration-guide).

# Data Source: mongodbatlas_cluster

`mongodbatlas_cluster` describes a Cluster. The data source requires your Project ID.
Expand Down
6 changes: 0 additions & 6 deletions docs/data-sources/clusters.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
subcategory: "Deprecated"
---

**WARNING:** This data source is deprecated, use `mongodbatlas_advanced_clusters`. To learn more, see the [Migration Guide](../guides/cluster-to-advanced-cluster-migration-guide).

# Data Source: mongodbatlas_clusters

`mongodbatlas_cluster` describes all Clusters by the provided project_id. The data source requires your Project ID.
Expand Down
2 changes: 0 additions & 2 deletions docs/guides/1.18.0-upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ The Terraform MongoDB Atlas Provider version 1.18.0 has a number of new and exci

**Deprecations:**

- `mongodbatlas_cluster` resource and corresponding data sources are deprecated. Instead, use `mongodbatlas_advanced_cluster`. To learn more, see the [Migration Guide](cluster-to-advanced-cluster-migration-guide).

- Deprecations in `mongodbatlas_advanced_cluster` resource and data sources:
- `replication_specs.*.num_shards`: The `replication_specs` list now supports defining an object for each inidividual shard. Use this new schema instead of the `num_shards` attribute. To learn more, see the [Migration Guide](advanced-cluster-new-sharding-schema).
- `disk_size_gb`: The same attribute is now defined under `replication_specs.*.region_configs.*.(electable_specs|analytics_specs|read_only_specs).disk_size_gb`. Replacing this value doesn't affect the underlying cluster. This change in the value's location aligns this value with the updated API schema and allows for future independent storage size scaling.
Expand Down
6 changes: 0 additions & 6 deletions docs/resources/cluster.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
subcategory: "Deprecated"
---

**WARNING:** This resource is deprecated, use `mongodbatlas_advanced_cluster`. To learn more, see the [Migration Guide](../guides/cluster-to-advanced-cluster-migration-guide).

# Resource: mongodbatlas_cluster

`mongodbatlas_cluster` provides a Cluster resource. The resource lets you create, edit and delete clusters. The resource requires your Project ID.
Expand Down
2 changes: 0 additions & 2 deletions examples/mongodbatlas_cluster/nvme-upgrade/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# MongoDB Atlas Provider -- Cluster NVME (Non-Volatile Memory Express) Upgrade

**WARNING:** `mongodbatlas_cluster` resource and corresponding data sources have been deprecated in favor of `mongodbatlas_advanced_cluster`. To learn more about how to migrate, please read the [Migration Guide](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/cluster-to-advanced-cluster-migration-guide).

This example creates a project and cluster. It is intended to show how to upgrade from Standard, to PROVISIONED storage tier.

Variables Required:
Expand Down
2 changes: 0 additions & 2 deletions examples/mongodbatlas_cluster/tenant-upgrade/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# MongoDB Atlas Provider -- Cluster Tenant Upgrade

**WARNING:** `mongodbatlas_cluster` resource and corresponding data sources have been deprecated in favor of `mongodbatlas_advanced_cluster`. To learn more about how to migrate, please read the [Migration Guide](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/cluster-to-advanced-cluster-migration-guide).

This example creates a project and cluster. It is intended to show how to upgrade from shared, aka tenant, to dedicated tier.

Variables Required:
Expand Down