Skip to content

Commit 3fc36a2

Browse files
committed
Migrating the path Migrating the gsutil usage to gcloud storage
1 parent 80dad8e commit 3fc36a2

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

apis/aiplatform/v1alpha1/types.generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/samples/resources/cloudbuildtrigger/build-trigger-for-cloud-source-repo/cloudbuild_v1beta1_cloudbuildtrigger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ spec:
3939
timeout: 1800s
4040
step:
4141
- id: "download_zip"
42-
name: gcr.io/cloud-builders/gsutil
43-
args: ["cp", "gs://mybucket/remotefile.zip", "localfile.zip"]
42+
name: gcr.io/cloud-builders/gcloud
43+
args: ["storage", "cp", "gs://mybucket/remotefile.zip", "localfile.zip"]
4444
timeout: 300s
4545
- id: "build_package"
4646
name: gcr.io/cloud-builders/go

config/samples/resources/cloudbuildtrigger/build-trigger-for-github-repo/cloudbuild_v1beta1_cloudbuildtrigger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ spec:
4242
timeout: 1800s
4343
step:
4444
- id: "download_zip"
45-
name: gcr.io/cloud-builders/gsutil
46-
args: ["cp", "gs://mybucket/remotefile.zip", "localfile.zip"]
45+
name: gcr.io/cloud-builders/gcloud
46+
args: ["storage", "cp", "gs://mybucket/remotefile.zip", "localfile.zip"]
4747
timeout: 300s
4848
- id: "build_package"
4949
name: gcr.io/cloud-builders/go

crds/datacatalog_v1alpha1_datacatalogentry.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ spec:
310310
Required. Patterns to identify a set of files in Google Cloud Storage.
311311
312312
For more information, see [Wildcard Names]
313-
(https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames).
313+
(https://cloud.google.com/storage/docs/gcloud-storage/wildcards).
314314
315315
Note: Currently, bucket wildcards are not supported.
316316

third_party/github.com/hashicorp/terraform-provider-google-beta/google-beta/services/cloudbuild/resource_cloudbuild_trigger_generated_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ resource "google_cloudbuild_trigger" "build-trigger" {
113113
114114
build {
115115
step {
116-
name = "gcr.io/cloud-builders/gsutil"
117-
args = ["cp", "gs://mybucket/remotefile.zip", "localfile.zip"]
116+
name = "gcr.io/cloud-builders/gcloud"
117+
args = ["storage", "cp", "gs://mybucket/remotefile.zip", "localfile.zip"]
118118
timeout = "120s"
119119
secret_env = ["MY_SECRET"]
120120
}

third_party/github.com/hashicorp/terraform-provider-google-beta/google-beta/services/storage/data_source_storage_object_signed_url_internal_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ const fakeCredentials = `{
2626
}
2727
`
2828

29-
// The following values are derived from the output of the `gsutil signurl` command.
29+
// The following values are derived from the output of the `gcloud storage sign-url` command.
3030
// i.e.
31-
// gsutil signurl fake_creds.json gs://tf-test-bucket-6159205297736845881/path/to/file
31+
// gcloud storage sign-url gs://tf-test-bucket-6159205297736845881/path/to/file --private-key-file=fake_creds.json
3232
// URL HTTP Method Expiration Signed URL
3333
// gs://tf-test-bucket-6159205297736845881/path/to/file GET 2016-08-12 14:03:30 https://storage.googleapis.com/tf-test-bucket-6159205297736845881/path/to/file?GoogleAccessId=user@gcp-project.iam.gserviceaccount.com&Expires=1470967410&Signature=JJvE2Jc%2BeoagyS1qRACKBGUkgLkKjw7cGymHhtB4IzzN3nbXDqr0acRWGy0%2BEpZ3HYNDalEYsK0lR9Q0WCgty5I0JKmPIuo9hOYa1xTNH%2B22xiWsekxGV%2FcA9FXgWpi%2BFt7fBmMk4dhDe%2BuuYc7N79hd0FYuSBNW1Wp32Bluoe4SNkNAB%2BuIDd9KqPzqs09UAbBoz2y4WxXOQnRyR8GAfb8B%2FDtv62gYjtmp%2F6%2Fyr6xj7byWKZdQt8kEftQLTQmP%2F17Efjp6p%2BXo71Q0F9IhAFiqWfp3Ij8hHDSebLcVb2ULXyHNNQpHBOhFgALrFW3I6Uc3WciLEOsBS9Ej3EGdTg%3D%3D
3434

third_party/github.com/hashicorp/terraform-provider-google-beta/website/docs/guides/version_2_upgrade.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ resource "google_cloudbuild_trigger" "build_trigger" {
300300
tags = ["team-a", "service-b", "updated"]
301301
302302
step {
303-
name = "gcr.io/cloud-builders/gsutil"
304-
args = ["cp", "gs://mybucket/remotefile.zip", "localfile-updated.zip"]
303+
name = "gcr.io/cloud-builders/gcloud"
304+
args = ["storage", "cp", "gs://mybucket/remotefile.zip", "localfile-updated.zip"]
305305
}
306306
307307
step {

third_party/github.com/hashicorp/terraform-provider-google-beta/website/docs/r/storage_notification.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This service account is not created automatically when a project is created.
1818
To ensure the service account exists and obtain its email address for use in granting the correct IAM permission, use the
1919
[`google_storage_project_service_account`](/docs/providers/google/d/storage_project_service_account.html)
2020
datasource's `email_address` value, and see below for an example of enabling notifications by granting the correct IAM permission.
21-
See [the notifications documentation](https://cloud.google.com/storage/docs/gsutil/commands/notification) for more details.
21+
See [the notifications documentation](https://cloud.google.com/storage/docs/gcloud/storage-buckets-notifications) for more details.
2222

2323
>**NOTE**: This resource can affect your storage IAM policy. If you are using this in the same config as your storage IAM policy resources, consider
2424
making this resource dependent on those IAM resources via `depends_on`. This will safeguard against errors due to IAM race conditions.
@@ -96,4 +96,4 @@ Storage notifications can be imported using the notification `id` in the format
9696

9797
```
9898
$ terraform import google_storage_notification.notification default_bucket/notificationConfigs/102
99-
```
99+
```

0 commit comments

Comments
 (0)