Skip to content

Commit b7aec3f

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add the support for the batch hpc rocky linux image
--- feat: add InstancePolicy.reservation field for restricting jobs to a specific reservation --- docs: elaborate the usage of Container.volumes proto field PiperOrigin-RevId: 570148633
1 parent 5813201 commit b7aec3f

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

google/cloud/batch/v1alpha/job.proto

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

google/cloud/batch/v1alpha/task.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)