File tree Expand file tree Collapse file tree
google/cloud/batch/v1alpha Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -332,6 +332,7 @@ message AllocationPolicy {
332332 // * `batch-centos`: use Batch CentOS images.
333333 // * `batch-cos`: use Batch Container-Optimized images.
334334 // * `batch-hpc-centos`: use Batch HPC CentOS images.
335+ // * `batch-hpc-rocky`: use Batch HPC Rocky Linux images.
335336 string image = 4 ;
336337
337338 // Name of a snapshot used as the data source.
@@ -445,9 +446,9 @@ message AllocationPolicy {
445446 // storage and accessing.
446447 repeated AttachedDisk disks = 6 ;
447448
448- // If specified, VMs will consume only the specified reservation.
449+ // Optional. If specified, VMs will consume only the specified reservation.
449450 // If not specified (default), VMs will consume any applicable reservation.
450- string reservation = 7 ;
451+ string reservation = 7 [ (google.api .field_behavior ) = OPTIONAL ] ;
451452 }
452453
453454 // InstancePolicyOrTemplate lets you define the type of resources to use for
Original file line number Diff line number Diff line change @@ -178,6 +178,14 @@ message Runnable {
178178 // Volumes to mount (bind mount) from the host machine files or directories
179179 // into the container, formatted to match docker run's --volume option,
180180 // e.g. /foo:/bar, or /foo:/bar:ro
181+ //
182+ // If the `TaskSpec.Volumes` field is specified but this field is not, Batch
183+ // will mount each volume from the host machine to the container with the
184+ // same mount path by default. In this case, the default mount option for
185+ // containers will be read-only (ro) for existing persistent disks and
186+ // read-write (rw) for other volume types, regardless of the original mount
187+ // options specified in `TaskSpec.Volumes`. If you need different mount
188+ // settings, you can explicitly configure them in this field.
181189 repeated string volumes = 7 ;
182190
183191 // Arbitrary additional options to include in the "docker run" command when
You can’t perform that action at this time.
0 commit comments