Skip to content

Commit d646bad

Browse files
rename master to main (#5745) (#11211)
Signed-off-by: Modular Magician <[email protected]>
1 parent 80f6dd2 commit d646bad

20 files changed

+62
-59
lines changed

.changelog/5745.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google/data_source_sql_database_instance_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestAccDataSourceSqlDatabaseInstance_basic(t *testing.T) {
2222
Check: resource.ComposeTestCheckFunc(
2323
checkDataSourceStateMatchesResourceStateWithIgnores(
2424
"data.google_sql_database_instance.qa",
25-
"google_sql_database_instance.master",
25+
"google_sql_database_instance.main",
2626
map[string]struct{}{
2727
"deletion_protection": {},
2828
},
@@ -35,8 +35,8 @@ func TestAccDataSourceSqlDatabaseInstance_basic(t *testing.T) {
3535

3636
func testAccDataSourceSqlDatabaseInstance_basic(context map[string]interface{}) string {
3737
return Nprintf(`
38-
resource "google_sql_database_instance" "master" {
39-
name = "master-instance-%{random_suffix}"
38+
resource "google_sql_database_instance" "main" {
39+
name = "main-instance-%{random_suffix}"
4040
database_version = "POSTGRES_11"
4141
region = "us-central1"
4242
@@ -50,7 +50,7 @@ resource "google_sql_database_instance" "master" {
5050
}
5151
5252
data "google_sql_database_instance" "qa" {
53-
name = google_sql_database_instance.master.name
53+
name = google_sql_database_instance.main.name
5454
}
5555
`, context)
5656
}

google/resource_bigtable_instance.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ func getBigtableZone(z string, config *Config) (string, error) {
404404
// act like a TypeSet while it's a TypeList underneath. It preserves state
405405
// ordering on updates, and causes the resource to get recreated if it would
406406
// attempt to perform an impossible change.
407-
// This doesn't use the standard unordered list utility (https://github.com/GoogleCloudPlatform/magic-modules/blob/master/templates/terraform/unordered_list_customize_diff.erb)
407+
// This doesn't use the standard unordered list utility (https://github.com/GoogleCloudPlatform/magic-modules/blob/main/templates/terraform/unordered_list_customize_diff.erb)
408408
// because some fields can't be modified using the API and we recreate the instance
409409
// when they're changed.
410410
func resourceBigtableInstanceClusterReorderTypeList(_ context.Context, diff *schema.ResourceDiff, meta interface{}) error {

google/resource_cloud_run_service.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ include labels and annotations that should be attached to the Revision.
128128
To correlate a Revision, and/or to force a Revision to be created when the
129129
spec doesn't otherwise change, a nonce label may be provided in the
130130
template metadata. For more details, see:
131-
https://github.com/knative/serving/blob/master/docs/client-conventions.md#associate-modifications-with-revisions
131+
https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions
132132
133133
Cloud Run does not currently support referencing a build that is
134134
responsible for materializing the container image from source.`,
@@ -151,7 +151,7 @@ responsible for materializing the container image from source.`,
151151
In the context of a Revision, we disallow a number of the fields of
152152
this Container, including: name, ports, and volumeMounts.
153153
The runtime contract is documented here:
154-
https://github.com/knative/serving/blob/master/docs/runtime-contract.md`,
154+
https://github.com/knative/serving/blob/main/docs/runtime-contract.md`,
155155
Elem: &schema.Resource{
156156
Schema: map[string]*schema.Schema{
157157
"image": {

google/resource_cloudbuild_trigger_generated_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func testAccCloudBuildTrigger_cloudbuildTriggerFilenameExample(context map[strin
5151
return Nprintf(`
5252
resource "google_cloudbuild_trigger" "filename-trigger" {
5353
trigger_template {
54-
branch_name = "master"
54+
branch_name = "main"
5555
repo_name = "my-repo"
5656
}
5757
@@ -93,7 +93,7 @@ func testAccCloudBuildTrigger_cloudbuildTriggerBuildExample(context map[string]i
9393
return Nprintf(`
9494
resource "google_cloudbuild_trigger" "build-trigger" {
9595
trigger_template {
96-
branch_name = "master"
96+
branch_name = "main"
9797
repo_name = "my-repo"
9898
}
9999
@@ -189,7 +189,7 @@ data "google_project" "project" {}
189189
190190
resource "google_cloudbuild_trigger" "service-account-trigger" {
191191
trigger_template {
192-
branch_name = "master"
192+
branch_name = "main"
193193
repo_name = "my-repo"
194194
}
195195

google/resource_cloudbuild_trigger_test.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ resource "google_cloudbuild_trigger" "build_trigger" {
215215
name = "%s"
216216
description = "acceptance test build trigger"
217217
trigger_template {
218-
branch_name = "master"
218+
branch_name = "main"
219219
repo_name = "some-repo"
220220
}
221221
build {
@@ -273,7 +273,7 @@ resource "google_cloudbuild_trigger" "build_trigger" {
273273
name = "%s"
274274
description = "acceptance test build trigger"
275275
trigger_template {
276-
branch_name = "master"
276+
branch_name = "main"
277277
repo_name = "some-repo"
278278
}
279279
build {
@@ -302,7 +302,7 @@ func testAccCloudBuildTrigger_fullStep() string {
302302
resource "google_cloudbuild_trigger" "build_trigger" {
303303
description = "acceptance test build trigger"
304304
trigger_template {
305-
branch_name = "master"
305+
branch_name = "main"
306306
repo_name = "some-repo"
307307
invert_regex = false
308308
}
@@ -330,7 +330,7 @@ resource "google_cloudbuild_trigger" "build_trigger" {
330330
description = "acceptance test build trigger updated"
331331
name = "%s"
332332
trigger_template {
333-
branch_name = "master-updated"
333+
branch_name = "main-updated"
334334
repo_name = "some-repo-updated"
335335
invert_regex = true
336336
}
@@ -374,7 +374,7 @@ resource "google_cloudbuild_trigger" "build_trigger" {
374374
name = "%s"
375375
description = "acceptance test build trigger"
376376
trigger_template {
377-
branch_name = "master"
377+
branch_name = "main"
378378
repo_name = "some-repo"
379379
}
380380
build {
@@ -402,7 +402,7 @@ resource "google_cloudbuild_trigger" "build_trigger" {
402402
name = "%s"
403403
description = "acceptance test build trigger updated"
404404
trigger_template {
405-
branch_name = "master"
405+
branch_name = "main"
406406
repo_name = "some-repo"
407407
}
408408
build {
@@ -610,7 +610,7 @@ resource "google_cloudbuild_trigger" "build_trigger" {
610610
name = "%s"
611611
description = "acceptance test build trigger"
612612
trigger_template {
613-
branch_name = "master"
613+
branch_name = "main"
614614
repo_name = "some-repo"
615615
}
616616
build {
@@ -644,7 +644,7 @@ resource "google_cloudbuild_trigger" "build_trigger" {
644644
name = "%s"
645645
description = "acceptance test build trigger"
646646
trigger_template {
647-
branch_name = "master"
647+
branch_name = "main"
648648
repo_name = "some-repo"
649649
}
650650
build {

scripts/run_diff.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [[ -d ~/go/src/github.com/hashicorp/terraform-provider-clean-google ]]; then
1616
pushd ~/go/src/github.com/hashicorp/terraform-provider-clean-google
1717
git clean -fdx
1818
git reset --hard
19-
git checkout master
19+
git checkout main
2020
git pull
2121
popd
2222
else

website/docs/d/kms_secret.html.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ resource "random_id" "db_name_suffix" {
6464
byte_length = 4
6565
}
6666
67-
resource "google_sql_database_instance" "master" {
68-
name = "master-instance-${random_id.db_name_suffix.hex}"
67+
resource "google_sql_database_instance" "main" {
68+
name = "main-instance-${random_id.db_name_suffix.hex}"
6969
database_version = "MYSQL_5_7"
7070
7171
settings {
@@ -75,7 +75,7 @@ resource "google_sql_database_instance" "master" {
7575
7676
resource "google_sql_user" "users" {
7777
name = "me"
78-
instance = google_sql_database_instance.master.name
78+
instance = google_sql_database_instance.main.name
7979
host = "me.com"
8080
password = data.google_kms_secret.sql_user_password.plaintext
8181
}

website/docs/d/kms_secret_asymmetric.html.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ resource "random_id" "db_name_suffix" {
116116
byte_length = 4
117117
}
118118
119-
resource "google_sql_database_instance" "master" {
120-
name = "master-instance-${random_id.db_name_suffix.hex}"
119+
resource "google_sql_database_instance" "main" {
120+
name = "main-instance-${random_id.db_name_suffix.hex}"
121121
database_version = "MYSQL_5_7"
122122
123123
settings {
@@ -127,7 +127,7 @@ resource "google_sql_database_instance" "master" {
127127
128128
resource "google_sql_user" "users" {
129129
name = "me"
130-
instance = google_sql_database_instance.master.name
130+
instance = google_sql_database_instance.main.name
131131
host = "me.com"
132132
password = data.google_kms_secret.sql_user_password.plaintext
133133
}

website/docs/d/sql_backup_run.html.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Use this data source to get information about a Cloud SQL instance backup run.
1515

1616
```hcl
1717
data "google_sql_backup_run" "backup" {
18-
instance = google_sql_database_instance.master.name
18+
instance = google_sql_database_instance.main.name
1919
most_recent = true
2020
}
2121
```

website/docs/guides/version_2_upgrade.html.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ for details if you're new to using `google-beta`.
2121
Most of the changes outlined in this guide have been previously marked as
2222
deprecated in the Terraform `plan`/`apply` output throughout previous provider
2323
releases, up to and including 1.20.0. These changes, such as deprecation notices,
24-
can always be found in the [CHANGELOG](https://github.com/hashicorp/terraform-provider-google/blob/master/CHANGELOG.md).
24+
can always be found in the [CHANGELOG](https://github.com/hashicorp/terraform-provider-google/blob/main/CHANGELOG.md).
2525

2626
## Why version 2.0.0?
2727

@@ -166,7 +166,7 @@ available. For more information see [the official documentation on GCP launch st
166166

167167
Because the API for beta features can change before their GA launch, there may
168168
be breaking changes in the `google-beta` provider in minor release versions.
169-
These changes will be announced in the [`google-beta` CHANGELOG](https://github.com/hashicorp/terraform-provider-google-beta/blob/master/CHANGELOG.md).
169+
These changes will be announced in the [`google-beta` CHANGELOG](https://github.com/hashicorp/terraform-provider-google-beta/blob/main/CHANGELOG.md).
170170

171171
To have resources at different API versions, set up provider blocks for each version:
172172

@@ -293,7 +293,7 @@ Example updated configuration:
293293
```hcl
294294
resource "google_cloudbuild_trigger" "build_trigger" {
295295
trigger_template {
296-
branch_name = "master-updated"
296+
branch_name = "main-updated"
297297
repo_name = "some-repo-updated"
298298
}
299299

website/docs/guides/version_3_upgrade.html.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Most of the changes outlined in this guide have been previously marked as
1717
deprecated in the Terraform `plan`/`apply` output throughout previous provider
1818
releases, up to and including the final `2.X` series release. These changes,
1919
such as deprecation notices, can always be found in the CHANGELOG of the
20-
affected providers. [google](https://github.com/hashicorp/terraform-provider-google/blob/master/CHANGELOG.md)
21-
[google-beta](https://github.com/hashicorp/terraform-provider-google-beta/blob/master/CHANGELOG.md)
20+
affected providers. [google](https://github.com/hashicorp/terraform-provider-google/blob/main/CHANGELOG.md)
21+
[google-beta](https://github.com/hashicorp/terraform-provider-google-beta/blob/main/CHANGELOG.md)
2222

2323
## What is `3.0.0-beta.1`?
2424

website/docs/guides/version_4_upgrade.html.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Most of the changes outlined in this guide have been previously marked as
1717
deprecated in the Terraform `plan`/`apply` output throughout previous provider
1818
releases, up to and including the final `3.X` series release. These changes,
1919
such as deprecation notices, can always be found in the CHANGELOG of the
20-
affected providers. [google](https://github.com/hashicorp/terraform-provider-google/blob/master/CHANGELOG.md)
21-
[google-beta](https://github.com/hashicorp/terraform-provider-google-beta/blob/master/CHANGELOG.md)
20+
affected providers. [google](https://github.com/hashicorp/terraform-provider-google/blob/main/CHANGELOG.md)
21+
[google-beta](https://github.com/hashicorp/terraform-provider-google-beta/blob/main/CHANGELOG.md)
2222

2323
## I accidentally upgraded to 4.0.0, how do I downgrade to `3.X`?
2424

website/docs/index.html.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ If you have configuration questions, or general questions about using the provid
4343
## Releases
4444

4545
Interested in the provider's latest features, or want to make sure you're up to date?
46-
Check out the [`google` provider changelog](https://github.com/hashicorp/terraform-provider-google/blob/master/CHANGELOG.md)
47-
and the [`google-beta` provider changelog](https://github.com/hashicorp/terraform-provider-google-beta/blob/master/CHANGELOG.md))
46+
Check out the [`google` provider changelog](https://github.com/hashicorp/terraform-provider-google/blob/main/CHANGELOG.md)
47+
and the [`google-beta` provider changelog](https://github.com/hashicorp/terraform-provider-google-beta/blob/main/CHANGELOG.md))
4848
for release notes and additional information.
4949

5050
Per [Terraform Provider Versioning](https://www.hashicorp.com/blog/hashicorp-terraform-provider-versioning),
@@ -101,7 +101,7 @@ the issue!
101101
## Contributing
102102

103103
If you'd like to help extend the Google provider, we gladly accept community
104-
contributions! Our full contribution guide is available at [CONTRIBUTING.md](https://github.com/hashicorp/terraform-provider-google/blob/master/.github/CONTRIBUTING.md)
104+
contributions! Our full contribution guide is available at [CONTRIBUTING.md](https://github.com/hashicorp/terraform-provider-google/blob/main/.github/CONTRIBUTING.md)
105105

106106
Pull requests can be made against either provider repo where a maintainer will
107107
apply them to both `google` and `google-beta`, or against [Magic Modules](https://github.com/GoogleCloudPlatform/magic-modules)

website/docs/r/cloud_run_service.html.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ The following arguments are supported:
519519
In the context of a Revision, we disallow a number of the fields of
520520
this Container, including: name, ports, and volumeMounts.
521521
The runtime contract is documented here:
522-
https://github.com/knative/serving/blob/master/docs/runtime-contract.md
522+
https://github.com/knative/serving/blob/main/docs/runtime-contract.md
523523
Structure is [documented below](#nested_containers).
524524

525525
* `container_concurrency` -
@@ -857,7 +857,7 @@ The following arguments are supported:
857857
To correlate a Revision, and/or to force a Revision to be created when the
858858
spec doesn't otherwise change, a nonce label may be provided in the
859859
template metadata. For more details, see:
860-
https://github.com/knative/serving/blob/master/docs/client-conventions.md#associate-modifications-with-revisions
860+
https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions
861861
Cloud Run does not currently support referencing a build that is
862862
responsible for materializing the container image from source.
863863
Structure is [documented below](#nested_template).

website/docs/r/cloudbuild_trigger.html.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ To get more information about Trigger, see:
4444
```hcl
4545
resource "google_cloudbuild_trigger" "filename-trigger" {
4646
trigger_template {
47-
branch_name = "master"
47+
branch_name = "main"
4848
repo_name = "my-repo"
4949
}
5050
@@ -67,7 +67,7 @@ resource "google_cloudbuild_trigger" "filename-trigger" {
6767
```hcl
6868
resource "google_cloudbuild_trigger" "build-trigger" {
6969
trigger_template {
70-
branch_name = "master"
70+
branch_name = "main"
7171
repo_name = "my-repo"
7272
}
7373
@@ -144,7 +144,7 @@ data "google_project" "project" {}
144144
145145
resource "google_cloudbuild_trigger" "service-account-trigger" {
146146
trigger_template {
147-
branch_name = "master"
147+
branch_name = "main"
148148
repo_name = "my-repo"
149149
}
150150

website/docs/r/endpoints_service.html.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ The following arguments are supported:
3838

3939
- - -
4040

41-
* `openapi_config`: (Optional) The full text of the OpenAPI YAML configuration as described [here](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md).
41+
* `openapi_config`: (Optional) The full text of the OpenAPI YAML configuration as described [here](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md).
4242
Either this, or *both* of `grpc_config` and `protoc_output_base64` must be specified.
4343

44-
* `grpc_config`: (Optional) The full text of the Service Config YAML file (Example located [here](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/endpoints/bookstore-grpc/api_config.yaml)).
44+
* `grpc_config`: (Optional) The full text of the Service Config YAML file (Example located [here](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/endpoints/bookstore-grpc/api_config.yaml)).
4545
If provided, must also provide `protoc_output_base64`. `open_api` config must *not* be provided.
4646

4747
* `protoc_output_base64`: (Optional) The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded.

website/docs/r/sql_database_instance.html.markdown

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ It is recommended to not set this field (or set it to true) until you're ready t
2626
### SQL Second Generation Instance
2727

2828
```hcl
29-
resource "google_sql_database_instance" "master" {
30-
name = "master-instance"
29+
resource "google_sql_database_instance" "main" {
30+
name = "main-instance"
3131
database_version = "POSTGRES_11"
3232
region = "us-central1"
3333
@@ -459,9 +459,9 @@ performing filtering in a Terraform config.
459459
Database instances can be imported using one of any of these accepted formats:
460460

461461
```
462-
$ terraform import google_sql_database_instance.master projects/{{project}}/instances/{{name}}
463-
$ terraform import google_sql_database_instance.master {{project}}/{{name}}
464-
$ terraform import google_sql_database_instance.master {{name}}
462+
$ terraform import google_sql_database_instance.main projects/{{project}}/instances/{{name}}
463+
$ terraform import google_sql_database_instance.main {{project}}/{{name}}
464+
$ terraform import google_sql_database_instance.main {{name}}
465465
466466
```
467467

website/docs/r/sql_ssl_cert.html.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ resource "random_id" "db_name_suffix" {
2323
byte_length = 4
2424
}
2525
26-
resource "google_sql_database_instance" "master" {
27-
name = "master-instance-${random_id.db_name_suffix.hex}"
26+
resource "google_sql_database_instance" "main" {
27+
name = "main-instance-${random_id.db_name_suffix.hex}"
2828
database_version = "MYSQL_5_7"
2929
settings {
3030
tier = "db-f1-micro"
@@ -33,7 +33,7 @@ resource "google_sql_database_instance" "master" {
3333
3434
resource "google_sql_ssl_cert" "client_cert" {
3535
common_name = "client-name"
36-
instance = google_sql_database_instance.master.name
36+
instance = google_sql_database_instance.main.name
3737
}
3838
```
3939

0 commit comments

Comments
 (0)