Skip to content

Commit 02be488

Browse files
Merge pull request #11521 from c2thorn/main (#8014)
Merge 6.0 branch into main [upstream:33e0634155d56642a6c64174a611267eaaedf084] Signed-off-by: Modular Magician <[email protected]>
1 parent 450d076 commit 02be488

File tree

4 files changed

+4
-48
lines changed

4 files changed

+4
-48
lines changed

.changelog/11521.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/services/compute/resource_compute_instance_test.go

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,20 +1733,6 @@ func TestAccComputeInstance_guestAcceleratorSkip(t *testing.T) {
17331733
testAccCheckComputeInstanceLacksGuestAccelerator(&instance),
17341734
),
17351735
},
1736-
// Recreate with guest_accelerator = []
1737-
{
1738-
Config: testAccComputeInstance_guestAcceleratorEmptyBlock(instanceName),
1739-
Check: resource.ComposeTestCheckFunc(
1740-
testAccCheckComputeInstanceExists(t, "google_compute_instance.foobar", &instance),
1741-
testAccCheckComputeInstanceLacksGuestAccelerator(&instance),
1742-
),
1743-
},
1744-
// Check that count = 0 is the same as empty block []
1745-
{
1746-
Config: testAccComputeInstance_guestAccelerator(instanceName, 0),
1747-
ExpectNonEmptyPlan: false,
1748-
PlanOnly: true,
1749-
},
17501736
},
17511737
})
17521738

@@ -7117,38 +7103,6 @@ resource "google_compute_instance" "foobar" {
71177103
`, instance, count)
71187104
}
71197105

7120-
func testAccComputeInstance_guestAcceleratorEmptyBlock(instance string) string {
7121-
return fmt.Sprintf(`
7122-
data "google_compute_image" "my_image" {
7123-
family = "debian-11"
7124-
project = "debian-cloud"
7125-
}
7126-
7127-
resource "google_compute_instance" "foobar" {
7128-
name = "%s"
7129-
machine_type = "n1-standard-1" // can't be e2 because of guest_accelerator
7130-
zone = "us-east1-d"
7131-
7132-
boot_disk {
7133-
initialize_params {
7134-
image = data.google_compute_image.my_image.self_link
7135-
}
7136-
}
7137-
7138-
network_interface {
7139-
network = "default"
7140-
}
7141-
7142-
scheduling {
7143-
# Instances with guest accelerators do not support live migration.
7144-
on_host_maintenance = "TERMINATE"
7145-
}
7146-
7147-
guest_accelerator = []
7148-
}
7149-
`, instance)
7150-
}
7151-
71527106
func testAccComputeInstance_minCpuPlatform(instance string) string {
71537107
return fmt.Sprintf(`
71547108
data "google_compute_image" "my_image" {

google-beta/services/resourcemanager/resource_google_project.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ func resourceGoogleProjectDelete(d *schema.ResourceData, meta interface{}) error
509509
return err
510510
}
511511
deletionPolicy := d.Get("deletion_policy").(string)
512+
512513
if deletionPolicy == "PREVENT" {
513514
return fmt.Errorf("Cannot destroy project as deletion_policy is set to PREVENT.")
514515
} else if deletionPolicy == "ABANDON" {

website/docs/r/sql_database_instance.html.markdown

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,6 @@ This setting can be updated, but it cannot be removed after it is set.
381381

382382
* `server_ca_mode` - (Optional) Specify how the server certificate's Certificate Authority is hosted. Supported value is `GOOGLE_MANAGED_INTERNAL_CA`.
383383

384-
* `server_ca_mode` - (Optional) Specify how the server certificate's Certificate Authority is hosted. Supported value is `GOOGLE_MANAGED_INTERNAL_CA`.
385-
386384
* `allocated_ip_range` - (Optional) The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://datatracker.ietf.org/doc/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.
387385

388386
* `enable_private_path_for_google_cloud_services` - (Optional) Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported.

0 commit comments

Comments
 (0)