Skip to content

Commit

Permalink
feat: cloudrunv2 jobs and services support passing flags to gcsfuse i…
Browse files Browse the repository at this point in the history
…n beta (hashicorp#12226) (hashicorp#20173)

[upstream:536f2e3e9ef8e2cf720862aecde1fb6fc1d570c1]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Nov 4, 2024
1 parent ca05185 commit dc48162
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/12226.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
cloudrunv2: added `gcs.mount_options` to `google_cloud_run_v2_service` and `google_cloud_run_v2_job` (beta)
```
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ func testAccCloudRunV2Job_cloudrunv2JobWithGcsVolume(context map[string]interfac
gcs {
bucket = "gcp-public-data-landsat"
read_only = true
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ resource "google_cloud_run_v2_service" "default" {
gcs {
bucket = "gcp-public-data-landsat"
read_only = true
}
}
containers {
Expand Down
5 changes: 5 additions & 0 deletions website/docs/r/cloud_run_v2_job.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,11 @@ The following arguments are supported:
(Optional)
If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.

* `mount_options` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
A list of flags to pass to the gcsfuse command for configuring this volume.
Flags should be passed without leading dashes.

<a name="nested_nfs"></a>The `nfs` block supports:

* `server` -
Expand Down
5 changes: 5 additions & 0 deletions website/docs/r/cloud_run_v2_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,11 @@ The following arguments are supported:
(Optional)
If true, mount the GCS bucket as read-only

* `mount_options` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
A list of flags to pass to the gcsfuse command for configuring this volume.
Flags should be passed without leading dashes.

<a name="nested_nfs"></a>The `nfs` block supports:

* `server` -
Expand Down

0 comments on commit dc48162

Please sign in to comment.