Skip to content

Commit 93ef242

Browse files
authored
Add subPath field to volume mounts (#15060)
1 parent 9b1a11e commit 93ef242

File tree

8 files changed

+20
-0
lines changed

8 files changed

+20
-0
lines changed

mmv1/products/cloudrun/Service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,10 @@ properties:
559559
Path within the container at which the volume should be mounted. Must
560560
not contain ':'.
561561
required: true
562+
- name: 'subPath'
563+
type: String
564+
description: |-
565+
Path within the volume from which the container's volume should be mounted.
562566
- name: 'name'
563567
type: String
564568
description: |-

mmv1/products/cloudrunv2/Job.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,10 @@ properties:
440440
description: |-
441441
Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
442442
required: true
443+
- name: 'subPath'
444+
type: String
445+
description: |-
446+
Path within the volume from which the container's volume should be mounted.
443447
- name: 'workingDir'
444448
type: String
445449
description: |-

mmv1/products/cloudrunv2/Service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,10 @@ properties:
591591
description: |-
592592
Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
593593
required: true
594+
- name: 'subPath'
595+
type: String
596+
description: |-
597+
Path within the volume from which the container's volume should be mounted.
594598
- name: 'workingDir'
595599
type: String
596600
description: |-

mmv1/products/cloudrunv2/WorkerPool.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,10 @@ properties:
478478
description: |-
479479
Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
480480
required: true
481+
- name: 'subPath'
482+
type: String
483+
description: |-
484+
Path within the volume from which the container's volume should be mounted.
481485
- name: 'workingDir'
482486
type: String
483487
description: |-

mmv1/third_party/terraform/services/cloudrun/resource_cloud_run_service_test.go.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,7 @@ resource "google_cloud_run_service" "default" {
14061406
volume_mounts {
14071407
name = "vol1"
14081408
mount_path = "/mnt/vol1"
1409+
sub_path = "/LM01"
14091410
}
14101411
}
14111412
volumes {

mmv1/third_party/terraform/services/cloudrunv2/resource_cloud_run_v2_job_test.go.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ func testAccCloudRunV2Job_cloudrunv2JobWithGcsVolume(context map[string]interfac
380380
volume_mounts {
381381
name = "gcs"
382382
mount_path = "/mnt/gcs"
383+
sub_path = "/LM01"
383384
}
384385
}
385386
volumes {

mmv1/third_party/terraform/services/cloudrunv2/resource_cloud_run_v2_service_test.go.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ resource "google_cloud_run_v2_service" "default" {
366366
volume_mounts {
367367
name = "gcs"
368368
mount_path = "/mnt/landsat"
369+
sub_path = "/LM01"
369370
}
370371
resources {
371372
cpu_idle = true

mmv1/third_party/terraform/services/cloudrunv2/resource_cloud_run_v2_worker_pool_test.go.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ resource "google_cloud_run_v2_worker_pool" "default" {
238238
volume_mounts {
239239
name = "gcs"
240240
mount_path = "/mnt/landsat"
241+
sub_path = "/LM01"
241242
}
242243
resources {
243244
limits = {

0 commit comments

Comments
 (0)