-
Notifications
You must be signed in to change notification settings - Fork 669
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
Remove deprecated scaling attributes #4481
Remove deprecated scaling attributes #4481
Conversation
service == "databases-for-cassandra" || | ||
service == "databases-for-enterprisedb" { | ||
if planPhase { | ||
groupDefaults, err := getDatabaseServiceDefaults(service, meta) |
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.
getDatabaseServiceDefaults
function appears unused and should be removed
func resourceIBMDatabaseInstanceDiff(_ context.Context, diff *schema.ResourceDiff, meta interface{}) (err error) { | ||
err = flex.ResourceTagsCustomizeDiff(diff) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
service := diff.Get("service").(string) | ||
planPhase := diff.Get("plan_validation").(bool) |
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.
We should also deprecate/remove plan_validation
from the schema since it is no longer used
LGTM |
Flat list scaling attributes are deprecated and should no longer be used per the following PRs:
This PR is to remove the attributes for good. Please refer to the docs here: https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#sample-database-instance-by-using-group-attributes for the current scaling attributes.
Many scaling attributes have been deprecated in favor of groups scaling. This PR is to officially remove them and update the tests.
For more details please about deprecated attributes see the following blog post: https://www.ibm.com/cloud/blog/announcements/new-features-and-rearchitecturing-of-ibm-cloud-databasess-terraform-provider
Community Note
Relates OR Closes #0000
Output from acceptance testing: