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

Deprecate legacy DBaaS resources #1707

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Add deprecation warnings
  • Loading branch information
lgarber-akamai committed Jan 8, 2025
commit a9894539a3dbb678a69ef83595b725f784550713
1 change: 1 addition & 0 deletions linode/databasebackups/framework_datasource_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var backupSchema = schema.NestedBlockObject{
}

var frameworkDataSourceSchema = schema.Schema{
DeprecationMessage: "This resource has been deprecated.",
Attributes: map[string]schema.Attribute{
"database_id": schema.Int64Attribute{
Description: "The ID of the Managed Database.",
Expand Down
2 changes: 2 additions & 0 deletions linode/databasemysql/framework_datasource_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
)

var frameworkDatasourceSchema = schema.Schema{
DeprecationMessage: "This resource has been deprecated. " +
"Please use linode_database_mysql_v2 for all future implementations.",
Attributes: map[string]schema.Attribute{
"database_id": schema.Int64Attribute{
DeprecationMessage: "Configure `id` instead. This attribute will be removed " +
Expand Down
2 changes: 2 additions & 0 deletions linode/databasemysql/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func Resource() *schema.Resource {
Update: schema.DefaultTimeout(updateDBTimeout),
Delete: schema.DefaultTimeout(deleteDBTimeout),
},
DeprecationMessage: "This resource has been deprecated. " +
"Please use linode_database_mysql_v2 for all future implementations.",
}
}

Expand Down
5 changes: 3 additions & 2 deletions linode/databasemysqlbackups/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import (

func DataSource() *schema.Resource {
return &schema.Resource{
Schema: dataSourceSchema,
ReadContext: readDataSource,
DeprecationMessage: "This resource has been deprecated.",
Schema: dataSourceSchema,
ReadContext: readDataSource,
}
}

Expand Down
2 changes: 2 additions & 0 deletions linode/databasepostgresql/framework_datasource_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
)

var frameworkDatasourceSchema = schema.Schema{
DeprecationMessage: "This resource has been deprecated. " +
"Please use linode_database_postgresql_v2 for all future implementations.",
Attributes: map[string]schema.Attribute{
"database_id": schema.Int64Attribute{
DeprecationMessage: "Configure `id` instead. This attribute will be removed " +
Expand Down
2 changes: 2 additions & 0 deletions linode/databasepostgresql/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func Resource() *schema.Resource {
Update: schema.DefaultTimeout(updateDBTimeout),
Delete: schema.DefaultTimeout(deleteDBTimeout),
},
DeprecationMessage: "This resource has been deprecated. " +
"Please use linode_database_postgresql_v2 for all future implementations.",
}
}

Expand Down