Skip to content

Commit

Permalink
Merge 6.0 branch into main
Browse files Browse the repository at this point in the history
from commit '3e09a697a4c27f025affe9916c9e821a7428f752'
  • Loading branch information
c2thorn committed Aug 21, 2024
2 parents 2015e36 + 3e09a69 commit 47b37d5
Show file tree
Hide file tree
Showing 397 changed files with 3,825 additions and 4,030 deletions.
6 changes: 6 additions & 0 deletions .changelog/10274.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```release-note:breaking-change
container: removed deprecated field `advanced_datapath_observability_config.relay_mode` from `google_container_cluster` resource. Users are expected to use `enable_relay` field instead.
```
```release-note:breaking-change
container: made field `advanced_datapath_observability_config.enable_relay` required in `google_container_cluster` resource
```
9 changes: 9 additions & 0 deletions .changelog/10313.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
```release-note:breaking-change
vpcaccess: removed default values for `min_throughput` and `min_instances` fields on `google_vpc_access_connector` and made them default to values returned from the API when not provided by users
```
```release-note:breaking-change
vpcaccess: added a conflicting fields restriction between `min_throughput` and `min_instances` fields on `google_vpc_access_connector`
```
```release-note:breaking-change
vpcaccess: added a conflicting fields restriction between `max_throughput` and `max_instances` fields on `google_vpc_access_connector`
```
3 changes: 3 additions & 0 deletions .changelog/10367.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
redis: added a `deletion_protection_enabled` field with a default value of `true` to the `google_redis_cluster` resource
```
3 changes: 3 additions & 0 deletions .changelog/10897.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
compute: added fields `reserved_internal_range` and `secondary_ip_ranges[].reserved_internal_range` to `google_compute_subnetwork` resource
```
3 changes: 3 additions & 0 deletions .changelog/11023.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11038.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
pubsub: Allow `schema_settings` of `google_pubsub_topic` to be removed
```
3 changes: 3 additions & 0 deletions .changelog/11088.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11101.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
bigquery: added validation to prevent table view creation if schema contains required fields for `google_bigquery_table` resource
```
3 changes: 3 additions & 0 deletions .changelog/11117.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
compute: Updated default values of `connection_draining_timeout_sec`, `balancing_mode` and `outlier_detection` in `google_compute_region_backend_service` and `google_compute_backend_service`.
```
3 changes: 3 additions & 0 deletions .changelog/11126.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11135.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11154.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:deprecation
sql: `settings.ip_configuration.require_ssl` is now deprecated within `google_sql_database_instance`. Please use `settings.ip_configuration.ssl_mode` instead.
```
3 changes: 3 additions & 0 deletions .changelog/11179.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11190.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
cloudrunv2: `liveness_probe` field in `google_cloud_run_v2_service` resource no longer has a default value from API side. Removing this field and applying the change will remove liveness probe from the Cloud Run service.
```
3 changes: 3 additions & 0 deletions .changelog/11199.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
cloudrunv2: retyped `containers.env` to SET from ARRAY for `google_cloud_run_v2_service` and `google_cloud_run_v2_job`.
```
3 changes: 3 additions & 0 deletions .changelog/11209.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11225.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
workstation: `host.gce_instance.disable_ssh` now defaults to true for `google_workstations_workstation_config`
```
3 changes: 3 additions & 0 deletions .changelog/11226.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
billing: updated resource id for `google_billing_project_info`
```
3 changes: 3 additions & 0 deletions .changelog/11237.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11240.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
compute: updated resource id for `compute_network_endpoints`
```
3 changes: 3 additions & 0 deletions .changelog/11255.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
resourcemanager: Make `deletion-policy` in `google_project` 'PREVENT' by default. This makes deleting them require an explicit intent. `google_project` resources cannot be destroyed unless `deletion_policy` is set to 'ABANDON' or 'NONE' for the resource.
```
3 changes: 3 additions & 0 deletions .changelog/11256.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
activeDirectory: added `deletion_protection` field to `google_active_directory_domain` to make deleting them require an explicit intent. `google_active_directory_domain` resources now cannot be destroyed unless `deletion_protection = false` is set for the resource.
```
3 changes: 3 additions & 0 deletions .changelog/11293.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
google_folders: added `deletion_protection` field to `folders` to make deleting them require an explicit intent. `folder` resources now cannot be destroyed unless `deletion_protection = false` is set for the resource.
```
3 changes: 3 additions & 0 deletions .changelog/11304.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
bigqueryreservation: remove `multi_region_auxiliary` from `google_bigquery_reservation`
```
3 changes: 3 additions & 0 deletions .changelog/11318.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
cloudrunv2: added `deletion_protection` field to `google_cloudrunv2_service` to make deleting them require an explicit intent. `google_cloudrunv2_service` resources now cannot be destroyed unless `deletion_protection = false` is set for the resource.
```
9 changes: 9 additions & 0 deletions .changelog/11320.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
```release-note:breaking-change
container: three label-related fields are now in `google_container_cluster` resource. `resource_labels` field is non-authoritative and only manages the labels defined by the users on the resource through Terraform. The new output-only `terraform_labels` field merges the labels defined by the users on the resource through Terraform and the default labels configured on the provider. The new output-only `effective_labels` field lists all of labels present on the resource in GCP, including the labels configured through Terraform, the system, and other clients.
```
```release-note:breaking-change
container: made three fields `resource_labels`, `terraform_labels`, and `effective_labels` be present in `google_container_cluster` datasources. All three fields will have all of labels present on the resource in GCP including the labels configured through Terraform, the system, and other clients, equivalent to `effective_labels` on the resource.
```
```release-note:breaking-change
edgenetwork: three label-related fields are now in `google_edgenetwork_network ` and `google_edgenetwork_subnet` resources. `labels` field is non-authoritative and only manages the labels defined by the users on the resource through Terraform. The new output-only `terraform_labels` field merges the labels defined by the users on the resource through Terraform and the default labels configured on the provider. The new output-only `effective_labels` field lists all of labels present on the resource in GCP, including the labels configured through Terraform, the system, and other clients.
```
3 changes: 3 additions & 0 deletions .changelog/11329.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11354.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
identityplatform: removed resource `google_identity_platform_project_default_config` in favor of `google_identity_platform_project_config`
```
3 changes: 3 additions & 0 deletions .changelog/11356.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
storage: removed `no_age` field from `lifecycle_rule.condition` in the `google_storage_bucket` resource
```
3 changes: 3 additions & 0 deletions .changelog/11393.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
bigquery: removed `allow_resource_tags_on_deletion` from `google_bigquery_table`. Resource tags are now always allowed on table deletion.
```
3 changes: 3 additions & 0 deletions .changelog/11400.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11409.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
compute: stopped the `certifcate_id` field in `google_compute_managed_ssl_certificate` resource being incorrectly marked as a user-configurable value when it should just be an output.
```
3 changes: 3 additions & 0 deletions .changelog/11434.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11439.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
changed provider labels to add the `goog-terraform-provisioned: true` label by default.
```
3 changes: 3 additions & 0 deletions .changelog/11448.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
compute: changed the behavior of `name_prefix` in multiple Compute resources to allow for a longer max length of 54 characters. See the upgrade guide and resource documentation for more details.
```
3 changes: 3 additions & 0 deletions .changelog/11450.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
integrations: `create_sample_workflows` and `provision_gmek` are removed from `google_integrations_client`
```
3 changes: 3 additions & 0 deletions .changelog/11457.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
datastore: `google_datastore_index` has been removed in favor of `google_firestore_index`
```
3 changes: 3 additions & 0 deletions .changelog/11460.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:deprecation
alloydb: `network` removed in `google_alloy_db_cluster`. Use `network_config.network` instead.
```
3 changes: 3 additions & 0 deletions .changelog/11462.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11471.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11489.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 3 additions & 0 deletions .changelog/11499.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
18 changes: 18 additions & 0 deletions .changelog/11506.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
```release-note:breaking-change
composer: `ip_allocation_policy = []` in `google_composer_environment` is no longer valid configuration. Removing the field from configuration should not produce a diff.
```
```release-note:breaking-change
compute: `secondary_ip_ranges = []` in `google_compute_subnetwork` is no longer valid configuration. To set an explicitly empty list, use `send_secondary_ip_range_if_empty` and completely remove `secondary_ip_range` from config.
```
```release-note:breaking-change
compute: `guest_accelerator = []` is no longer valid configuration in `google_compute_instance`. To explicitly set an empty list of objects, set guest_accelerator.count = 0.
```
```release-note:breaking-change
compute: `google_compute_instance_from_template` and `google_compute_instance_from_machine_image` `network_interface.alias_ip_range, network_interface.access_config, attached_disk, guest_accelerator, service_account, scratch_disk` can no longer be set to an empty block `[]`. Removing the fields from configuration should not produce a diff.
```
```release-note:breaking-change
container: `guest_accelerator = []` is no longer valid configuration in `google_container_cluster` and `google_container_node_pool`. To explicitly set an empty list of objects, set guest_accelerator.count = 0.
```
```release-note:breaking-change
container: `guest_accelerator.gpu_driver_installation_config = []` and `guest_accelerator.gpu_sharing_config = []` are no longer valid configuration in `google_container_cluster` and `google_container_node_pool`. Removing the fields from configuration should not produce a diff.
```
3 changes: 3 additions & 0 deletions .changelog/11513.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
6 changes: 6 additions & 0 deletions .changelog/9581.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```release-note:bug
compute: fixed an issue regarding sending `enabled` field by default for null `iap` message in `google_compute_backend_service` and `google_compute_region_backend_service`
```
```release-note:breaking-change
compute: Add new required field `enabled` in `google_compute_backend_service` and `google_compute_region_backend_service`
```
5 changes: 1 addition & 4 deletions google-beta/acctest/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ func CheckDataSourceStateMatchesResourceStateWithIgnores(dataSourceName, resourc
if _, ok := ignoreFields[k]; ok {
continue
}
if _, ok := ignoreFields["labels.%"]; ok && strings.HasPrefix(k, "labels.") {
continue
}
if _, ok := ignoreFields["terraform_labels.%"]; ok && strings.HasPrefix(k, "terraform_labels.") {
if strings.HasPrefix(k, "labels.") || strings.HasPrefix(k, "terraform_labels.") || strings.HasPrefix(k, "effective_labels.") {
continue
}
if k == "%" {
Expand Down
15 changes: 15 additions & 0 deletions google-beta/acctest/vcr_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"path/filepath"
"reflect"
"regexp"
"slices"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -149,6 +150,20 @@ func VcrTest(t *testing.T, c resource.TestCase) {
} else if isReleaseDiffEnabled() {
c = initializeReleaseDiffTest(c, t.Name())
}

// terraform_labels is a computed field to which "goog-terraform-provisioned": "true" is always
// added by the provider. ImportStateVerify "checks for strict equality and does not respect
// DiffSuppressFunc or CustomizeDiff" so any test using ImportStateVerify must ignore
// terraform_labels.
var steps []resource.TestStep
for _, s := range c.Steps {
if s.ImportStateVerify && !slices.Contains(s.ImportStateVerifyIgnore, "terraform_labels") {
s.ImportStateVerifyIgnore = append(s.ImportStateVerifyIgnore, "terraform_labels")
}
steps = append(steps, s)
}
c.Steps = steps

resource.Test(t, c)
}

Expand Down
1 change: 0 additions & 1 deletion google-beta/fwmodels/provider_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ type ProviderModel struct {
DataplexCustomEndpoint types.String `tfsdk:"dataplex_custom_endpoint"`
DataprocCustomEndpoint types.String `tfsdk:"dataproc_custom_endpoint"`
DataprocMetastoreCustomEndpoint types.String `tfsdk:"dataproc_metastore_custom_endpoint"`
DatastoreCustomEndpoint types.String `tfsdk:"datastore_custom_endpoint"`
DatastreamCustomEndpoint types.String `tfsdk:"datastream_custom_endpoint"`
DeploymentManagerCustomEndpoint types.String `tfsdk:"deployment_manager_custom_endpoint"`
DialogflowCustomEndpoint types.String `tfsdk:"dialogflow_custom_endpoint"`
Expand Down
6 changes: 0 additions & 6 deletions google-beta/fwprovider/framework_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,6 @@ func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest,
transport_tpg.CustomEndpointValidator(),
},
},
"datastore_custom_endpoint": &schema.StringAttribute{
Optional: true,
Validators: []validator.String{
transport_tpg.CustomEndpointValidator(),
},
},
"datastream_custom_endpoint": &schema.StringAttribute{
Optional: true,
Validators: []validator.String{
Expand Down
10 changes: 0 additions & 10 deletions google-beta/fwtransport/framework_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ type FrameworkProviderConfig struct {
DataplexBasePath string
DataprocBasePath string
DataprocMetastoreBasePath string
DatastoreBasePath string
DatastreamBasePath string
DeploymentManagerBasePath string
DialogflowBasePath string
Expand Down Expand Up @@ -278,7 +277,6 @@ func (p *FrameworkProviderConfig) LoadAndValidateFramework(ctx context.Context,
p.DataplexBasePath = data.DataplexCustomEndpoint.ValueString()
p.DataprocBasePath = data.DataprocCustomEndpoint.ValueString()
p.DataprocMetastoreBasePath = data.DataprocMetastoreCustomEndpoint.ValueString()
p.DatastoreBasePath = data.DatastoreCustomEndpoint.ValueString()
p.DatastreamBasePath = data.DatastreamCustomEndpoint.ValueString()
p.DeploymentManagerBasePath = data.DeploymentManagerCustomEndpoint.ValueString()
p.DialogflowBasePath = data.DialogflowCustomEndpoint.ValueString()
Expand Down Expand Up @@ -898,14 +896,6 @@ func (p *FrameworkProviderConfig) HandleDefaults(ctx context.Context, data *fwmo
data.DataprocMetastoreCustomEndpoint = types.StringValue(customEndpoint.(string))
}
}
if data.DatastoreCustomEndpoint.IsNull() {
customEndpoint := transport_tpg.MultiEnvDefault([]string{
"GOOGLE_DATASTORE_CUSTOM_ENDPOINT",
}, transport_tpg.DefaultBasePaths[transport_tpg.DatastoreBasePathKey])
if customEndpoint != nil {
data.DatastoreCustomEndpoint = types.StringValue(customEndpoint.(string))
}
}
if data.DatastreamCustomEndpoint.IsNull() {
customEndpoint := transport_tpg.MultiEnvDefault([]string{
"GOOGLE_DATASTREAM_CUSTOM_ENDPOINT",
Expand Down
8 changes: 1 addition & 7 deletions google-beta/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ func Provider() *schema.Provider {
"add_terraform_attribution_label": {
Type: schema.TypeBool,
Optional: true,
Default: true,
},

"terraform_attribution_label_addition_strategy": {
Expand Down Expand Up @@ -399,11 +400,6 @@ func Provider() *schema.Provider {
Optional: true,
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
},
"datastore_custom_endpoint": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
},
"datastream_custom_endpoint": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -996,7 +992,6 @@ func ProviderConfigure(ctx context.Context, d *schema.ResourceData, p *schema.Pr
config.DefaultLabels[k] = v.(string)
}

// Attribution label is opt-in; if unset, the default for AddTerraformAttributionLabel is false.
config.AddTerraformAttributionLabel = d.Get("add_terraform_attribution_label").(bool)
if config.AddTerraformAttributionLabel {
config.TerraformAttributionLabelAdditionStrategy = transport_tpg.CreateOnlyAttributionStrategy
Expand Down Expand Up @@ -1068,7 +1063,6 @@ func ProviderConfigure(ctx context.Context, d *schema.ResourceData, p *schema.Pr
config.DataplexBasePath = d.Get("dataplex_custom_endpoint").(string)
config.DataprocBasePath = d.Get("dataproc_custom_endpoint").(string)
config.DataprocMetastoreBasePath = d.Get("dataproc_metastore_custom_endpoint").(string)
config.DatastoreBasePath = d.Get("datastore_custom_endpoint").(string)
config.DatastreamBasePath = d.Get("datastream_custom_endpoint").(string)
config.DeploymentManagerBasePath = d.Get("deployment_manager_custom_endpoint").(string)
config.DialogflowBasePath = d.Get("dialogflow_custom_endpoint").(string)
Expand Down
Loading

0 comments on commit 47b37d5

Please sign in to comment.