Skip to content

Commit dc48162

Browse files
feat: cloudrunv2 jobs and services support passing flags to gcsfuse in beta (#12226) (#20173)
[upstream:536f2e3e9ef8e2cf720862aecde1fb6fc1d570c1] Signed-off-by: Modular Magician <[email protected]>
1 parent ca05185 commit dc48162

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

.changelog/12226.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
cloudrunv2: added `gcs.mount_options` to `google_cloud_run_v2_service` and `google_cloud_run_v2_job` (beta)
3+
```

google/services/cloudrunv2/resource_cloud_run_v2_job_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ func testAccCloudRunV2Job_cloudrunv2JobWithGcsVolume(context map[string]interfac
389389
gcs {
390390
bucket = "gcp-public-data-landsat"
391391
read_only = true
392+
392393
}
393394
}
394395
}

google/services/cloudrunv2/resource_cloud_run_v2_service_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ resource "google_cloud_run_v2_service" "default" {
272272
gcs {
273273
bucket = "gcp-public-data-landsat"
274274
read_only = true
275+
275276
}
276277
}
277278
containers {

website/docs/r/cloud_run_v2_job.html.markdown

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,11 @@ The following arguments are supported:
654654
(Optional)
655655
If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
656656

657+
* `mount_options` -
658+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
659+
A list of flags to pass to the gcsfuse command for configuring this volume.
660+
Flags should be passed without leading dashes.
661+
657662
<a name="nested_nfs"></a>The `nfs` block supports:
658663

659664
* `server` -

website/docs/r/cloud_run_v2_service.html.markdown

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,11 @@ The following arguments are supported:
11151115
(Optional)
11161116
If true, mount the GCS bucket as read-only
11171117

1118+
* `mount_options` -
1119+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
1120+
A list of flags to pass to the gcsfuse command for configuring this volume.
1121+
Flags should be passed without leading dashes.
1122+
11181123
<a name="nested_nfs"></a>The `nfs` block supports:
11191124

11201125
* `server` -

0 commit comments

Comments
 (0)