Skip to content

Commit 284737f

Browse files
authored
feat: remove support for deprecated mongodb version 4.4 and add 6.0 support (#310)
1 parent beb6e79 commit 284737f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ You need the following permissions to run this module.
8787
| <a name="input_kms_key_crn"></a> [kms\_key\_crn](#input\_kms\_key\_crn) | The root key CRN of a Key Management Services like Key Protect or Hyper Protect Crypto Services (HPCS) that you want to use for disk encryption. Only used if var.kms\_encryption\_enabled is set to true. | `string` | `null` | no |
8888
| <a name="input_members"></a> [members](#input\_members) | Allocated number of members | `number` | `3` | no |
8989
| <a name="input_memory_mb"></a> [memory\_mb](#input\_memory\_mb) | Allocated memory per member. For more information, see https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member | `number` | `1024` | no |
90-
| <a name="input_mongodb_version"></a> [mongodb\_version](#input\_mongodb\_version) | The version of the MongoDB to provision. If no value passed, the current ICD preferred version is used. | `string` | `null` | no |
90+
| <a name="input_mongodb_version"></a> [mongodb\_version](#input\_mongodb\_version) | The version of the MongoDB to provision. If no value passed, the current ICD preferred version is used. For our version policy, see https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-versioning-policy for more details | `string` | `null` | no |
9191
| <a name="input_plan"></a> [plan](#input\_plan) | The name of the service plan that you choose for your MongoDB instance | `string` | `"standard"` | no |
9292
| <a name="input_region"></a> [region](#input\_region) | The region where you want to deploy your instance. | `string` | `"us-south"` | no |
9393
| <a name="input_resource_group_id"></a> [resource\_group\_id](#input\_resource\_group\_id) | The resource group ID where the MongoDB instance will be created. | `string` | n/a | yes |

tests/pr_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func TestRunFSCloudExample(t *testing.T) {
5959
"access_tags": permanentResources["accessTags"],
6060
"existing_kms_instance_guid": permanentResources["hpcs_south"],
6161
"kms_key_crn": permanentResources["hpcs_south_root_key_crn"],
62-
"mongodb_version": "5.0", // Always lock this test into the latest supported MongoDB version
62+
"mongodb_version": "6.0", // Always lock this test into the latest supported MongoDB version
6363
},
6464
CloudInfoService: sharedInfoSvc,
6565
})
@@ -91,7 +91,7 @@ func TestRunCompleteUpgradeExample(t *testing.T) {
9191
BestRegionYAMLPath: regionSelectionPath,
9292
ResourceGroup: resourceGroup,
9393
TerraformVars: map[string]interface{}{
94-
"mongodb_version": "4.4", // Always lock to the lowest supported MongoDB version
94+
"mongodb_version": "5.0", // Always lock to the lowest supported MongoDB version
9595
"users": []map[string]interface{}{
9696
{
9797
"name": "testuser",

variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ variable "access_tags" {
4141

4242
variable "mongodb_version" {
4343
type = string
44-
description = "The version of the MongoDB to provision. If no value passed, the current ICD preferred version is used."
44+
description = "The version of the MongoDB to provision. If no value passed, the current ICD preferred version is used. For our version policy, see https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-versioning-policy for more details"
4545
default = null
4646
validation {
4747
condition = anytrue([
4848
var.mongodb_version == null,
49+
var.mongodb_version == "6.0",
4950
var.mongodb_version == "5.0",
50-
var.mongodb_version == "4.4",
5151
])
52-
error_message = "Version must be 4.4 or 5.0. If no value is passed, the current preferred version of IBM Cloud Databases is used."
52+
error_message = "Version must be 5.0 or 6.0. If no value is passed, the current preferred version of IBM Cloud Databases is used."
5353
}
5454
}
5555

0 commit comments

Comments
 (0)