Skip to content

Update disk type schema field to support db-c4a-highmem-4 tier #13236

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 11 commits into from
Apr 23, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ is set to true. Defaults to ZONAL.`,
"disk_type": {
Type: schema.TypeString,
Optional: true,
Default: "PD_SSD",
Computed: true,
ForceNew: true,
DiffSuppressFunc: caseDiffDashSuppress,
Description: `The type of data disk: PD_SSD, PD_HDD, or HYPERDISK_BALANCED. Defaults to PD_SSD.`,
Description: `The type of supported data disk is tier dependent and can be PD_SSD or PD_HDD or HyperDisk_Balanced `,
},
{{- if ne $.TargetVersionName "ga" }}
"data_disk_provisioned_iops": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ func TestAccSQLDatabaseInstance_DefaultEdition(t *testing.T) {
t.Parallel()
databaseName := "tf-test-" + acctest.RandString(t, 10)
databaseVersion := "POSTGRES_16"
enterprisePlusTier := "db-perf-optimized-N-2"
enterprisePlusTier := "db-c4a-highmem-4"
acctest.VcrTest(t, resource.TestCase{
PreCheck: func() { acctest.AccTestPreCheck(t) },
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"binaryLogEnabled": true,
"enabled": true
},
"dataDiskType": "PD_SSD",
"ipConfiguration": {
"authorizedNetworks": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"binaryLogEnabled": true,
"enabled": true
},
"dataDiskType": "PD_SSD",
"ipConfiguration": {
"authorizedNetworks": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"settings": {
"activationPolicy": "ALWAYS",
"availabilityType": "ZONAL",
"dataDiskType": "PD_SSD",
"pricingPlan": "PER_USE",
"storageAutoResize": true,
"tier": "db-f1-micro"
Expand Down
1 change: 0 additions & 1 deletion mmv1/third_party/tgc/tests/data/sql.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"settings": {
"activationPolicy": "ALWAYS",
"availabilityType": "ZONAL",
"dataDiskType": "PD_SSD",
"pricingPlan": "PER_USE",
"storageAutoResize": true,
"tier": "db-f1-micro"
Expand Down
Loading