Skip to content

Commit 99e8a95

Browse files
authored
Upgrade terraform provider google beta to v6.48.0 (#3330)
Generated via `upgrade-provider pulumi/pulumi-gcp` Merge conflict fixed in upstream/google-beta/services/sql/resource_sql_database_instance.go Closes #3321
1 parent a61c4b9 commit 99e8a95

341 files changed

Lines changed: 54360 additions & 24237 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

patches/0002-Add-nil-checks-for-sql-database-instance-flattening.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ Subject: [PATCH] Add nil checks for sql database instance flattening
55

66

77
diff --git a/google-beta/services/sql/resource_sql_database_instance.go b/google-beta/services/sql/resource_sql_database_instance.go
8-
index 608fb4afa..6bb91c84b 100644
8+
index 2aaecce83..22eca909c 100644
99
--- a/google-beta/services/sql/resource_sql_database_instance.go
1010
+++ b/google-beta/services/sql/resource_sql_database_instance.go
11-
@@ -2362,6 +2362,10 @@ func resourceSqlDatabaseInstanceImport(d *schema.ResourceData, meta interface{})
11+
@@ -2399,6 +2399,10 @@ func resourceSqlDatabaseInstanceImport(d *schema.ResourceData, meta interface{})
1212
}
1313

14-
func flattenSettings(settings *sqladmin.Settings, d *schema.ResourceData) []map[string]interface{} {
14+
func flattenSettings(settings *sqladmin.Settings, iType string, d *schema.ResourceData) []map[string]interface{} {
1515
+ if settings == nil {
1616
+ return nil
1717
+ }
1818
+
1919
data := map[string]interface{}{
2020
"version": settings.SettingsVersion,
2121
"tier": settings.Tier,
22-
@@ -2469,6 +2473,10 @@ func flattenDataCacheConfig(d *sqladmin.DataCacheConfig) []map[string]interface{
22+
@@ -2519,6 +2523,10 @@ func flattenDataCacheConfig(d *sqladmin.DataCacheConfig) []map[string]interface{
2323
}
2424

2525
func flattenBackupConfiguration(backupConfiguration *sqladmin.BackupConfiguration) []map[string]interface{} {
@@ -30,7 +30,7 @@ index 608fb4afa..6bb91c84b 100644
3030
data := map[string]interface{}{
3131
"binary_log_enabled": backupConfiguration.BinaryLogEnabled,
3232
"enabled": backupConfiguration.Enabled,
33-
@@ -2609,6 +2617,10 @@ func flattenConnectionPoolConfig(connectionPoolConfig *sqladmin.ConnectionPoolCo
33+
@@ -2663,6 +2671,10 @@ func flattenConnectionPoolConfig(connectionPoolConfig *sqladmin.ConnectionPoolCo
3434
}
3535

3636
func flattenIpConfiguration(ipConfiguration *sqladmin.IpConfiguration, d *schema.ResourceData) interface{} {
@@ -41,7 +41,7 @@ index 608fb4afa..6bb91c84b 100644
4141
data := map[string]interface{}{
4242
"ipv4_enabled": ipConfiguration.Ipv4Enabled,
4343
"private_network": ipConfiguration.PrivateNetwork,
44-
@@ -2673,6 +2685,10 @@ func flattenAuthorizedNetworks(entries []*sqladmin.AclEntry) interface{} {
44+
@@ -2728,6 +2740,10 @@ func flattenAuthorizedNetworks(entries []*sqladmin.AclEntry) interface{} {
4545
}
4646

4747
func flattenLocationPreference(locationPreference *sqladmin.LocationPreference) interface{} {
@@ -52,7 +52,7 @@ index 608fb4afa..6bb91c84b 100644
5252
data := map[string]interface{}{
5353
"follow_gae_application": locationPreference.FollowGaeApplication,
5454
"zone": locationPreference.Zone,
55-
@@ -2683,6 +2699,10 @@ func flattenLocationPreference(locationPreference *sqladmin.LocationPreference)
55+
@@ -2738,6 +2754,10 @@ func flattenLocationPreference(locationPreference *sqladmin.LocationPreference)
5656
}
5757

5858
func flattenMaintenanceWindow(maintenanceWindow *sqladmin.MaintenanceWindow) interface{} {
@@ -63,7 +63,7 @@ index 608fb4afa..6bb91c84b 100644
6363
data := map[string]interface{}{
6464
"day": maintenanceWindow.Day,
6565
"hour": maintenanceWindow.Hour,
66-
@@ -2774,6 +2794,10 @@ func flattenServerCaCerts(caCerts []*sqladmin.SslCert) []map[string]interface{}
66+
@@ -2829,6 +2849,10 @@ func flattenServerCaCerts(caCerts []*sqladmin.SslCert) []map[string]interface{}
6767
}
6868

6969
func flattenInsightsConfig(insightsConfig *sqladmin.InsightsConfig) interface{} {

patches/0003-rebase-bigquery_dataset.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] rebase bigquery_dataset
55

66

77
diff --git a/google-beta/services/bigquery/resource_bigquery_dataset.go b/google-beta/services/bigquery/resource_bigquery_dataset.go
8-
index 884c11e6d..f0807e321 100644
8+
index 06e82b28b..ebaf156dd 100644
99
--- a/google-beta/services/bigquery/resource_bigquery_dataset.go
1010
+++ b/google-beta/services/bigquery/resource_bigquery_dataset.go
11-
@@ -799,8 +799,13 @@ func resourceBigQueryDatasetRead(d *schema.ResourceData, meta interface{}) error
11+
@@ -830,8 +830,13 @@ func resourceBigQueryDatasetRead(d *schema.ResourceData, meta interface{}) error
1212
if err := d.Set("effective_labels", flattenBigQueryDatasetEffectiveLabels(res["labels"], d, config)); err != nil {
1313
return fmt.Errorf("Error reading Dataset: %s", err)
1414
}

patches/0005-docs-patching.patch

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,14 @@ diff --git a/website/docs/r/cloud_run_service.html.markdown b/website/docs/r/clo
400400
index c78432abc..f88c6585b 100644
401401
--- a/website/docs/r/cloud_run_service.html.markdown
402402
+++ b/website/docs/r/cloud_run_service.html.markdown
403-
@@ -33,9 +33,64 @@ To get more information about Service, see:
403+
@@ -33,8 +33,63 @@ To get more information about Service, see:
404404
~> **Warning:** We recommend using the `google_cloud_run_v2_service` resource which offers a better
405405
developer experience and broader support of Cloud Run features.
406406

407407
-## Example Usage - Cloud Run Service Basic
408408
+## Example Usage - Cloud Run Service Pubsub
409-
410-
409+
+
410+
+
411411
+```hcl
412412
+resource "google_cloud_run_service" "default" {
413413
+ name = "cloud_run_service_name"
@@ -460,12 +460,11 @@ index c78432abc..f88c6585b 100644
460460
+ }
461461
+}
462462
+```
463-
+
463+
464464
+## Example Usage - Cloud Run Service Basic
465-
+
465+
466466
```hcl
467467
resource "google_cloud_run_service" "default" {
468-
name = "cloudrun-srv"
469468
@@ -118,7 +173,7 @@ resource "google_cloud_run_service" "default" {
470469
annotations = {
471470
"autoscaling.knative.dev/maxScale" = "1000"
@@ -1609,7 +1608,7 @@ index d88864517..9095d5782 100644
16091608
<div class = "oics-button" style="float: right; margin: 0 0 -15px">
16101609
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_image=gcr.io%2Fcloudshell-images%2Fcloudshell%3Alatest&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md&cloudshell_working_dir=vpn_tunnel_basic&open_in_editor=main.tf" target="_blank">
16111610
diff --git a/website/docs/r/container_cluster.html.markdown b/website/docs/r/container_cluster.html.markdown
1612-
index c713ee542..f9b8d84d7 100644
1611+
index a0719c567..3e2928fdc 100644
16131612
--- a/website/docs/r/container_cluster.html.markdown
16141613
+++ b/website/docs/r/container_cluster.html.markdown
16151614
@@ -27,15 +27,12 @@ To get more information about GKE clusters, see:
@@ -1700,7 +1699,7 @@ index c713ee542..f9b8d84d7 100644
17001699
release channel, but will not unenroll it. Instead, use the `"UNSPECIFIED"`
17011700
channel. Structure is [documented below](#nested_release_channel).
17021701

1703-
@@ -962,10 +980,6 @@ gvnic {
1702+
@@ -965,10 +983,6 @@ gvnic {
17041703

17051704
* `guest_accelerator` - (Optional) List of the type and count of accelerator cards attached to the instance.
17061705
Structure [documented below](#nested_guest_accelerator).
@@ -1711,7 +1710,7 @@ index c713ee542..f9b8d84d7 100644
17111710

17121711
* `image_type` - (Optional) The image type to use for this node. Note that changing the image type
17131712
will delete and recreate all nodes in the node pool.
1714-
@@ -992,7 +1006,7 @@ gvnic {
1713+
@@ -995,7 +1009,7 @@ gvnic {
17151714
* `metadata` - (Optional) The metadata key/value pairs assigned to instances in
17161715
the cluster. From GKE `1.12` onwards, `disable-legacy-endpoints` is set to
17171716
`true` by the API; if `metadata` is set but that default value is not
@@ -1720,7 +1719,7 @@ index c713ee542..f9b8d84d7 100644
17201719
value in your config.
17211720

17221721
* `min_cpu_platform` - (Optional) Minimum CPU platform to be used by this instance.
1723-
@@ -1017,10 +1031,7 @@ gvnic {
1722+
@@ -1020,10 +1034,7 @@ gvnic {
17241723
See the [official documentation](https://cloud.google.com/kubernetes-engine/docs/concepts/spot-vms)
17251724
for more information. Defaults to false.
17261725

@@ -1732,7 +1731,7 @@ index c713ee542..f9b8d84d7 100644
17321731

17331732
* `service_account` - (Optional) The service account to be used by the Node VMs.
17341733
If not specified, the "default" service account is used.
1735-
@@ -1034,13 +1045,14 @@ gvnic {
1734+
@@ -1037,13 +1048,14 @@ gvnic {
17361735

17371736
* `resource_manager_tags` - (Optional) A map of resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies. Tags must be according to specifications found [here](https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications). A maximum of 5 tag key-value pairs can be specified. Existing tags will be replaced with new values. Tags must be in one of the following formats ([KEY]=[VALUE]) 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` 2. `{org_id}/{tag_key_name}={tag_value_name}` 3. `{project_id}/{tag_key_name}={tag_value_name}`.
17381737

@@ -1754,7 +1753,7 @@ index c713ee542..f9b8d84d7 100644
17541753

17551754
* `workload_metadata_config` - (Optional) Metadata configuration to expose to workloads on the node pool.
17561755
Structure is [documented below](#nested_workload_metadata_config).
1757-
@@ -1333,7 +1345,7 @@ for more details. This field only applies to private clusters, when
1756+
@@ -1347,7 +1359,7 @@ for more details. This field only applies to private clusters, when
17581757
* `private_endpoint_subnetwork` - (Optional) Subnetwork in cluster's network where master's endpoint will be provisioned.
17591758

17601759
* `master_global_access_config` (Optional) - Controls cluster master global
@@ -1763,7 +1762,7 @@ index c713ee542..f9b8d84d7 100644
17631762
not modify the previously-set value. Structure is [documented below](#nested_master_global_access_config).
17641763

17651764
In addition, the `private_cluster_config` allows access to the following read-only fields:
1766-
@@ -1441,9 +1453,9 @@ Enables monitoring and attestation of the boot integrity of the instance. The at
1765+
@@ -1455,9 +1467,9 @@ Enables monitoring and attestation of the boot integrity of the instance. The at
17671766

17681767
* `mode` (Required) How to expose the node metadata to the workload running on the node.
17691768
Accepted values are:
@@ -3571,7 +3570,7 @@ index 94c3db9d4..091d0e9ac 100644
35713570
* `default_time_zone` - (Optional) The default time zone for the database. The default time zone must be a valid name
35723571
from the tz database. Default value is "America/Los_angeles".
35733572
diff --git a/website/docs/r/sql_database_instance.html.markdown b/website/docs/r/sql_database_instance.html.markdown
3574-
index 7fbfef1b7..6e576b004 100644
3573+
index 8a3712588..117dcd9ee 100644
35753574
--- a/website/docs/r/sql_database_instance.html.markdown
35763575
+++ b/website/docs/r/sql_database_instance.html.markdown
35773576
@@ -24,12 +24,12 @@ Creates a new Google SQL Database Instance. For more information, see the [offic
@@ -3589,7 +3588,7 @@ index 7fbfef1b7..6e576b004 100644
35893588
It is recommended to not set this field (or set it to true) until you're ready to destroy the instance and its databases.
35903589

35913590
## Example Usage
3592-
@@ -281,7 +281,7 @@ SQL Server version to use. Supported values include `MYSQL_5_6`,
3591+
@@ -306,7 +306,7 @@ SQL Server version to use. Supported values include `MYSQL_5_6`,
35933592
includes an up-to-date reference of supported versions.
35943593

35953594
* `name` - (Optional, Computed) The name of the instance. If the name is left
@@ -3598,7 +3597,7 @@ index 7fbfef1b7..6e576b004 100644
35983597
created. This is done because after a name is used, it cannot be reused for
35993598
up to [one week](https://cloud.google.com/sql/docs/delete-instance).
36003599

3601-
@@ -303,7 +303,7 @@ includes an up-to-date reference of supported versions.
3600+
@@ -328,7 +328,7 @@ includes an up-to-date reference of supported versions.
36023601

36033602
* `encryption_key_name` - (Optional)
36043603
The full path to the encryption key used for the CMEK disk encryption. Setting
@@ -3607,7 +3606,7 @@ index 7fbfef1b7..6e576b004 100644
36073606
The provided key must be in the same region as the SQL instance. In order
36083607
to use this feature, a special kind of service account must be created and
36093608
granted permission on this key. This step can currently only be done
3610-
@@ -311,20 +311,16 @@ includes an up-to-date reference of supported versions.
3609+
@@ -336,20 +336,16 @@ includes an up-to-date reference of supported versions.
36113610
That service account needs the `Cloud KMS > Cloud KMS CryptoKey Encrypter/Decrypter` role on your
36123611
key - please see [this step](https://cloud.google.com/sql/docs/mysql/configure-cmek#grantkey).
36133612

@@ -3633,7 +3632,7 @@ index 7fbfef1b7..6e576b004 100644
36333632
configuration is detailed below.
36343633

36353634
The `settings` block supports:
3636-
@@ -588,7 +584,7 @@ The optional `clone` block supports:
3635+
@@ -619,7 +615,7 @@ The optional `clone` block supports:
36373636
* `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 cloned instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.
36383637

36393638
The optional `restore_backup_context` block supports:
@@ -3642,7 +3641,7 @@ index 7fbfef1b7..6e576b004 100644
36423641
block during resource creation/update will trigger the restore action after the resource is created/updated.
36433642

36443643
* `backup_run_id` - (Required) The ID of the backup run to restore from.
3645-
@@ -652,21 +648,13 @@ instance.
3644+
@@ -685,21 +681,13 @@ instance.
36463645

36473646
* A `PRIVATE` address is an address for an instance which has been configured to use private networking see: [Private IP](https://cloud.google.com/sql/docs/mysql/private-ip).
36483647

patches/0008-Fix-794-with-an-unconditional-read.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Fix #794 with an unconditional read.
55

66

77
diff --git a/google-beta/services/sql/resource_sql_database_instance.go b/google-beta/services/sql/resource_sql_database_instance.go
8-
index 6bb91c84b..c6d77f2d1 100644
8+
index 22eca909c..f3a557250 100644
99
--- a/google-beta/services/sql/resource_sql_database_instance.go
1010
+++ b/google-beta/services/sql/resource_sql_database_instance.go
11-
@@ -2172,10 +2172,11 @@ func resourceSqlDatabaseInstanceUpdate(d *schema.ResourceData, meta interface{})
11+
@@ -2205,10 +2205,11 @@ func resourceSqlDatabaseInstanceUpdate(d *schema.ResourceData, meta interface{})
1212
if err != nil {
1313
return err
1414
}

0 commit comments

Comments
 (0)