Skip to content
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

Add support for Elasticsearch Platinum #4712

Merged
merged 11 commits into from
Oct 27, 2023
10 changes: 10 additions & 0 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -2119,6 +2119,16 @@
"verified_result": null
}
],
"ibm/service/database/resource_ibm_database_elasticsearch_platinum_test.go": [
{
"hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58",
"is_secret": false,
"is_verified": false,
"line_number": 779,
"type": "Secret Keyword",
"verified_result": null
}
],
"ibm/service/database/resource_ibm_database_elasticsearch_test.go": [
{
"hashed_secret": "10c28f9cf0668595d45c1090a7b4a2ae98edfa58",
Expand Down
6 changes: 5 additions & 1 deletion ibm/service/database/resource_ibm_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ func ResourceIBMICDValidator() *validate.ResourceValidator {
Identifier: "plan",
ValidateFunctionIdentifier: validate.ValidateAllowedStringValue,
Type: validate.TypeString,
AllowedValues: "standard, enterprise, enterprise-sharding",
AllowedValues: "standard, enterprise, enterprise-sharding, platinum",
Required: true})
validateSchema = append(validateSchema,
validate.ValidateSchema{
Expand Down Expand Up @@ -916,6 +916,10 @@ func getDefaultScalingGroups(_service string, _plan string, meta interface{}) (g
service = "mongodbee"
}

if service == "elasticsearch" && _plan == "platinum" {
service = "elasticsearchpl"
}

if service == "mongodb" && _plan == "enterprise-sharding" {
service = "mongodbees"
}
Expand Down
Loading