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

Merge 6.0 branch into main #11521

Merged
merged 55 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
22e1ca9
Merge pull request #11023 from c2thorn/sync-main-FEATURE-BRANCH-6.0.0
c2thorn Jun 25, 2024
a8fd825
Merge pull request #11088 from c2thorn/sync-main-FEATURE-BRANCH-6.0.0
c2thorn Jul 2, 2024
0c8818e
fix: Allow Pub/Sub Topic update to remove schema settings (#11038)
kamalaboulhosn Jul 2, 2024
413102a
fix: Allow Pub/Sub Topic update to remove schema settings (#11038)
kamalaboulhosn Jul 2, 2024
4271d4a
Merge pull request #11126 from c2thorn/sync-main-FEATURE-BRANCH-6.0.0
c2thorn Jul 9, 2024
f8834bc
Fix permadiff on google_vpc_access_connector resource with breaking c…
SarahFrench Jul 10, 2024
5bc78ca
TGC: Fix test failure `example_vpc_access_connector` (#11135)
SarahFrench Jul 11, 2024
edcfedd
Update backend service default values (#11117)
pawelJas Jul 12, 2024
09ac542
Merge branch 'FEATURE-BRANCH-major-release-6.0.0' into sync-main-FEAT…
c2thorn Jul 16, 2024
a07d8a1
fix tgc
c2thorn Jul 17, 2024
4b86cb2
Merge pull request #11179 from c2thorn/sync-main-FEATURE-BRANCH-6.0.0
c2thorn Jul 17, 2024
1d3de8b
Remove `default_from_api` from `liveness_probe` field in Cloud Run v2…
yanweiguo Jul 17, 2024
1d43e02
Add validation to prevent BigQuery view from creation when input sche…
wj-chen Jul 17, 2024
29ded33
Remove default addition of IAP message in encoder and decoder, add ne…
arnabadg-google Jul 18, 2024
d49eb28
Fix version_6_upgrade.html.markdown (#11209)
c2thorn Jul 22, 2024
8eb77e4
Merge branch 'FEATURE-BRANCH-major-release-6.0.0' into sync-main-FEAT…
c2thorn Jul 23, 2024
9941087
Update resource id for ProjectInfo (#11226)
hao-nan-li Jul 23, 2024
fa001dc
Merge pull request #11237 from c2thorn/sync-main-FEATURE-BRANCH-6.0.0
c2thorn Jul 24, 2024
bc7cde4
Deprecate google_sql_database_instance.settings.ip_configuration's re…
feng-zhe Jul 24, 2024
578efcf
Update Resource id for Compute_network_endpoints (#11240)
hao-nan-li Jul 24, 2024
a33654d
Make cloudrunv2 containers' env a set (#11199)
yanweiguo Jul 25, 2024
b65acdb
Add deletion_protection field to CloudAD domain resource (#11256)
abd-goog Jul 30, 2024
b5f859f
Remove `multi_region_auxiliary` from `google_bigquery_reservation` (#…
obada-ab Jul 31, 2024
28e9e2a
Merge commit '70c348448c94dc6ffb0b67721e3e88c99a1c63b4' into sync-mai…
c2thorn Aug 1, 2024
fbc1121
Merge pull request #11329 from c2thorn/sync-main-FEATURE-BRANCH-6.0.0
c2thorn Aug 5, 2024
40c0cc6
Remove resource google_identity_platform_project_default_config (#11354)
hao-nan-li Aug 5, 2024
1c7aa4d
Add deletion_protection to v2 cloud run service resource (#11318)
avianap Aug 6, 2024
a31848e
Add deletion_protection field to Folders resource (#11293)
abd-goog Aug 7, 2024
7c45cea
Merge commit '24de58242760a641cc59a85022b25131b8ffee02' into sync-mai…
c2thorn Aug 8, 2024
6106c33
Removes `no_age` from `google_storage_bucket` resource. (#11356)
kautikdk Aug 8, 2024
3c34235
add deletion_protection to failing tests
c2thorn Aug 9, 2024
4f39da5
Remove relay_mode field support (#10274)
siwiutki Aug 9, 2024
75ce1f6
Apply new labels model to container cluster and edgenetwork resources…
zli82016 Aug 9, 2024
a760a0b
Merge pull request #11400 from c2thorn/sync-main-FEATURE-BRANCH-6.0.0
c2thorn Aug 9, 2024
974c2f9
Remove default_from_api from certificateId field (#11409)
Hamzawy63 Aug 9, 2024
7ce4e15
Remove allow_resource_tags_on_deletion from google_bigquery_table (#1…
wj-chen Aug 9, 2024
f1026bb
Set disbaleSsh default value to true for workstation create (#11225)
tejal29 Aug 12, 2024
9905a08
Make deletion_policy field for Project resource `PREVENT` by default …
abd-goog Aug 13, 2024
2f02fec
Fix tgc unit test (#11434)
zli82016 Aug 14, 2024
e4cf2c3
remove deprecated integration client fields (#11450)
c2thorn Aug 15, 2024
cb56491
Breaking change - Add integration for subnetworks with internal range…
daanheikens Aug 15, 2024
ce44058
reduce name prefix in compute resources (#11448)
c2thorn Aug 15, 2024
de5e533
Remove references to deprecated `google_datastore_index` feature. (#1…
vadimyushprakh Aug 15, 2024
372b7c7
Remove project dependency from TestAccApikeysKey_* (#11462)
zli82016 Aug 16, 2024
dde0ea5
add state upgrader to set send_age_if_zero virtual field default to f…
NickElliot Aug 16, 2024
820e403
Add DeletionProtectionEnabled to Redis Cluster (#10367)
Harshita1603 Aug 16, 2024
f02f86c
Removed datastore from TeamCity service list (#11489)
melinath Aug 19, 2024
b00ae4c
Remove network in google_alloydb_cluster (#11460)
NickElliot Aug 19, 2024
0b62ec9
Enable goog-terraform-provisioned provider label (#11439)
SirGitsalot Aug 20, 2024
848f00e
Merge commit '04619204a8be4d8022df8a847238415a2bdcb64a' into sync-mai…
c2thorn Aug 20, 2024
5e11f50
Merge pull request #11499 from c2thorn/sync-main-FEATURE-BRANCH-6.0.0
c2thorn Aug 20, 2024
93bcf85
Remove SchemaConfigModeAttr (#11506)
c2thorn Aug 21, 2024
bc3986d
Merge commit 'bc5def9f8136003836911e78567dc8849a39be6d' into sync-mai…
c2thorn Aug 21, 2024
a5fdb75
skip two composer tests
c2thorn Aug 21, 2024
5041f53
Merge pull request #11513 from c2thorn/sync-main-FEATURE-BRANCH-6.0.0
c2thorn Aug 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .ci/gcb-generate-diffs-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ steps:
- COMMIT_SHA=$COMMIT_SHA

# Long timeout to enable waiting on VCR test
timeout: 20000s
timeout: 64800s
options:
machineType: 'N1_HIGHCPU_32'

Expand Down
3 changes: 0 additions & 3 deletions docs/content/develop/breaking-changes/breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ For more information, see
* <a name="field-removing-diff-suppress"></a> Removing diff suppression from a field.
* For MMv1 resources, removing `diff_suppress_func` from a field.
* For handwritten resources, removing `DiffSuppressFunc` from a field.
* <a name="field-adding-subfield-to-config-mode-attr"></a> Adding a subfield to
a SchemaConfigModeAttr field.
* Subfields of SchemaConfigModeAttr fields are treated as required even if the schema says they are optional.
* Removing update support from a field.

### Making validation more strict
Expand Down
10 changes: 9 additions & 1 deletion mmv1/api/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ module Properties

# Add a deprecation message for a resource that's been deprecated in the API.
attr_reader :deprecation_message

# Do not apply the default attribution label
attr_reader :skip_attribution_label
end

include Properties
Expand Down Expand Up @@ -342,6 +345,7 @@ def validate
check :taint_resource_on_failed_create, type: :boolean, default: false
check :skip_sweeper, type: :boolean, default: false
check :deprecation_message, type: ::String
check :skip_attribution_label, type: :boolean, default: false

validate_identity unless @identity.nil?
end
Expand Down Expand Up @@ -475,7 +479,11 @@ def add_labels_related_fields(props, parent)
def add_labels_fields(props, parent, labels)
@custom_diff ||= []
if parent.nil? || parent.flatten_object
@custom_diff.append('tpgresource.SetLabelsDiff')
if @skip_attribution_label
@custom_diff.append('tpgresource.SetLabelsDiffWithoutAttributionLabel')
else
@custom_diff.append('tpgresource.SetLabelsDiff')
end
elsif parent.name == 'metadata'
@custom_diff.append('tpgresource.SetMetadataLabelsDiff')
end
Expand Down
6 changes: 0 additions & 6 deletions mmv1/api/type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -762,12 +762,6 @@ def validate
# The "labels" field has type Array, so skip this resource
!(product_name == 'DeploymentManager' && resource_name == 'Deployment') &&

# https://github.com/hashicorp/terraform-provider-google/issues/16219
!(product_name == 'Edgenetwork' && resource_name == 'Network') &&

# https://github.com/hashicorp/terraform-provider-google/issues/16219
!(product_name == 'Edgenetwork' && resource_name == 'Subnet') &&

# "userLabels" is the resource labels field
!(product_name == 'Monitoring' && resource_name == 'NotificationChannel') &&

Expand Down
14 changes: 14 additions & 0 deletions mmv1/products/activedirectory/Domain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,20 @@ async: !ruby/object:Api::OpAsync
id_format: '{{name}}'
import_format: ['{{name}}']
autogen_async: true
virtual_fields:
- !ruby/object:Api::Type::Boolean
name: 'deletion_protection'
default_value: true
description: |
Whether Terraform will be prevented from destroying the domain. Defaults to true.
When a`terraform destroy` or `terraform apply` would delete the domain,
the command will fail if this field is not set to false in Terraform state.
When the field is set to true or unset in Terraform state, a `terraform apply`
or `terraform destroy` that would delete the domain will fail.
When the field is set to false, deleting the domain is allowed.
custom_code: !ruby/object:Provider::Terraform::CustomCode
custom_import: templates/terraform/custom_import/self_link_as_name.erb
pre_delete: 'templates/terraform/pre_delete/active_directory_domain.go.erb'
error_abort_predicates: ['transport_tpg.Is429QuotaError']
examples:
- !ruby/object:Provider::Terraform::Examples
Expand All @@ -67,6 +79,8 @@ examples:
tfgen
# skip the test until Active Directory setup issue got resolved
skip_test: true
ignore_read_extra:
- 'deletion_protection'
parameters:
- !ruby/object:Api::Type::String
name: domainName
Expand Down
14 changes: 14 additions & 0 deletions mmv1/products/activedirectory/go_Domain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,20 @@ async:
error:
path: 'error'
message: 'message'
virtual_fields:
- !ruby/object:Api::Type::Boolean
name: 'deletion_protection'
default_value: true
description: |
Whether Terraform will be prevented from destroying the domain. Defaults to true.
When a`terraform destroy` or `terraform apply` would delete the domain,
the command will fail if this field is not set to false in Terraform state.
When the field is set to true or unset in Terraform state, a `terraform apply`
or `terraform destroy` that would delete the domain will fail.
When the field is set to false, deleting the domain is allowed.
custom_code:
custom_import: 'templates/terraform/custom_import/go/self_link_as_name.tmpl'
pre_delete: 'templates/terraform/pre_delete/go/active_directory_domain.tmpl'
error_abort_predicates:

- 'transport_tpg.Is429QuotaError'
Expand All @@ -63,6 +75,8 @@ examples:
name: 'myorg'
domain_name: 'tfgen'
skip_test: true
ignore_read_extra:
- 'deletion_protection'
parameters:
- name: 'domainName'
type: String
Expand Down
15 changes: 0 additions & 15 deletions mmv1/products/alloydb/Cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,20 +221,6 @@ properties:
description: |
Output only. Cloud KMS key versions that are being used to protect the database or the backup.
output: true
- !ruby/object:Api::Type::String
name: 'network'
exactly_one_of:
- network
- network_config.0.network
- psc_config.0.psc_enabled
default_from_api: true
deprecation_message: >-
`network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.
description: |
The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:

"projects/{projectNumber}/global/networks/{network_id}".
diff_suppress_func: 'tpgresource.ProjectNumberDiffSuppress'
- !ruby/object:Api::Type::NestedObject
name: 'networkConfig'
description: |
Expand All @@ -244,7 +230,6 @@ properties:
- !ruby/object:Api::Type::String
name: network
exactly_one_of:
- network
- network_config.0.network
- psc_config.0.psc_enabled
description: |
Expand Down
10 changes: 0 additions & 10 deletions mmv1/products/bigquery/Table.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ examples:
vars:
dataset_id: 'dataset_id'
table_id: 'table_id'
virtual_fields:
- !ruby/object:Api::Type::Boolean
name: 'allow_resource_tags_on_deletion'
description: |
If set to true, it allows table deletion when there are still resource tags attached.
deprecation_message: |
`allow_resource_tags_on_deletion` is deprecated and will be removed in a future major
release. The default behavior will be allowing the presence of resource tags on
deletion after the next major release.
default_value: false
parameters:
# TODO(alexstephen): Remove once we have support for placing
# nested object fields in URL
Expand Down
6 changes: 0 additions & 6 deletions mmv1/products/bigqueryreservation/Reservation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ properties:
default_value: 0
description: |
Maximum number of queries that are allowed to run concurrently in this reservation. This is a soft limit due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency will be automatically set based on the reservation size.
- !ruby/object:Api::Type::Boolean
name: 'multiRegionAuxiliary'
description: |
Applicable only for reservations located within one of the BigQuery multi-regions (US or EU).
If set to true, this reservation is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization's default region.
deprecation_message: "`multi_region_auxiliary` is deprecated and will be removed in a future major release. This field is no longer supported by the BigQuery Reservation API."
- !ruby/object:Api::Type::String
name: 'edition'
immutable: true
Expand Down
2 changes: 1 addition & 1 deletion mmv1/products/billing/ProjectInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ references: !ruby/object:Api::Resource::ReferenceLinks
guides:
'Enable, disable, or change billing for a project': 'https://cloud.google.com/billing/docs/how-to/modify-project'
api: 'https://cloud.google.com/billing/docs/reference/rest/v1/projects'
id_format: 'projects/{{project}}/billingInfo'
id_format: 'projects/{{project}}'
custom_code: !ruby/object:Provider::Terraform::CustomCode
decoder: templates/terraform/decoders/billing_project_info.go.erb
encoder: templates/terraform/encoders/billing_project_info.go.erb
Expand Down
30 changes: 30 additions & 0 deletions mmv1/products/cloudrunv2/Job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ iam_policy: !ruby/object:Api::Resource::IamPolicy
id_format: 'projects/{{project}}/locations/{{location}}/jobs/{{name}}'
import_format: ['projects/{{project}}/locations/{{location}}/jobs/{{name}}']
autogen_async: true
virtual_fields:
- !ruby/object:Api::Type::Boolean
name: 'deletion_protection'
default_value: true
description: |
Whether Terraform will be prevented from destroying the job. Defaults to true.
When a`terraform destroy` or `terraform apply` would delete the job,
the command will fail if this field is not set to false in Terraform state.
When the field is set to true or unset in Terraform state, a `terraform apply`
or `terraform destroy` that would delete the job will fail.
When the field is set to false, deleting the job is allowed.
custom_code: !ruby/object:Provider::Terraform::CustomCode
pre_delete: 'templates/terraform/pre_delete/cloudrunv2_job_deletion_policy.go.erb'
examples:
- !ruby/object:Provider::Terraform::Examples
name: 'cloudrunv2_job_basic'
Expand All @@ -59,11 +72,15 @@ examples:
])"
vars:
cloud_run_job_name: 'cloudrun-job'
ignore_read_extra:
- 'deletion_protection'
- !ruby/object:Provider::Terraform::Examples
name: 'cloudrunv2_job_limits'
primary_resource_id: 'default'
vars:
cloud_run_job_name: 'cloudrun-job'
ignore_read_extra:
- 'deletion_protection'
- !ruby/object:Provider::Terraform::Examples
name: 'cloudrunv2_job_sql'
primary_resource_id: 'default'
Expand All @@ -79,6 +96,8 @@ examples:
deletion_protection: 'false'
oics_vars_overrides:
deletion_protection: 'false'
ignore_read_extra:
- 'deletion_protection'
- !ruby/object:Provider::Terraform::Examples
name: 'cloudrunv2_job_vpcaccess'
primary_resource_id: 'default'
Expand All @@ -90,13 +109,17 @@ examples:
vpc_access_connector_name: 'run-vpc'
vpc_compute_subnetwork_name: 'run-subnetwork'
compute_network_name: 'run-network'
ignore_read_extra:
- 'deletion_protection'
- !ruby/object:Provider::Terraform::Examples
name: 'cloudrunv2_job_directvpc'
primary_resource_id: 'default'
primary_resource_name: "fmt.Sprintf(\"tf-test-cloudrun-job%s\", context[\"random_suffix\"\
])"
vars:
cloud_run_job_name: 'cloudrun-job'
ignore_read_extra:
- 'deletion_protection'
- !ruby/object:Provider::Terraform::Examples
name: 'cloudrunv2_job_secret'
primary_resource_id: 'default'
Expand All @@ -106,6 +129,8 @@ examples:
vars:
cloud_run_job_name: 'cloudrun-job'
secret_id: 'secret'
ignore_read_extra:
- 'deletion_protection'
- !ruby/object:Provider::Terraform::Examples
name: 'cloudrunv2_job_emptydir'
min_version: 'beta'
Expand All @@ -114,6 +139,8 @@ examples:
])"
vars:
cloud_run_job_name: 'cloudrun-job'
ignore_read_extra:
- 'deletion_protection'
- !ruby/object:Provider::Terraform::Examples
name: 'cloudrunv2_job_run_job'
min_version: beta
Expand All @@ -122,6 +149,8 @@ examples:
])"
vars:
cloud_run_job_name: 'cloudrun-job'
ignore_read_extra:
- 'deletion_protection'
parameters:
- !ruby/object:Api::Type::String
name: 'location'
Expand Down Expand Up @@ -328,6 +357,7 @@ properties:
name: 'env'
description: |-
List of environment variables to set in the container.
is_set: true
item_type: !ruby/object:Api::Type::NestedObject
properties:
- !ruby/object:Api::Type::String
Expand Down
Loading
Loading