@@ -90,6 +90,7 @@ enum ZoneVirtualizationBackend {
9090 ZONE_VIRTUALIZATION_BACKEND_UNKNOWN = 0 ;
9191 ZONE_VIRTUALIZATION_BACKEND_PV = 1 ;
9292 ZONE_VIRTUALIZATION_BACKEND_PVH = 2 ;
93+ ZONE_VIRTUALIZATION_BACKEND_AUTOMATIC = 3 ;
9394}
9495
9596message OciImageSpec {
@@ -308,6 +309,12 @@ message WorkloadSpec {
308309 repeated MountSpec mounts = 6 ;
309310 WorkloadSecuritySpec security = 7 ;
310311 repeated WorkloadScratchMount scratch_mount = 8 ;
312+ repeated CgroupLimit cgroup_limits = 9 ;
313+ }
314+
315+ message CgroupLimit {
316+ string limit_name = 1 ;
317+ string value = 2 ;
311318}
312319
313320message WorkloadScratchMount {
@@ -322,6 +329,7 @@ message WorkloadSecuritySpec {
322329 bool privileged = 5 ;
323330 bool disable_all_namespaces = 6 ;
324331 repeated ProcessNamespace disable_namespaces = 7 ;
332+ bool read_only_rootfs = 8 ;
325333}
326334
327335enum WorkloadState {
@@ -355,15 +363,15 @@ message WorkloadBlockDeviceStatus {
355363}
356364
357365message WorkloadMountInfo {
358- uint64 device_id = 1 ;
359366 string tag = 2 ;
360- string host_directory = 3 ;
361- string host_file = 4 ;
367+ string host_path = 3 ;
362368 string target_path = 5 ;
369+ reserved 1 , 4 ;
363370}
364371
365372message WorkloadMountStatus {
366- repeated WorkloadMountInfo devices = 1 ;
373+ repeated WorkloadMountInfo mounts = 2 ;
374+ reserved 1 ;
367375}
368376
369377message WorkloadExitStatus {
@@ -488,6 +496,7 @@ message ZoneScratchDiskSpecStaticBlock {
488496
489497message ZoneDeviceStatus {
490498 repeated ZoneDiskStatus disks = 1 ;
499+ ZoneMountStatus mount = 2 ;
491500}
492501
493502enum ZoneDiskStatusDiskPurpose {
@@ -505,6 +514,12 @@ message ZoneDiskStatus {
505514 bool delete = 6 ;
506515}
507516
517+ message ZoneMountStatus {
518+ uint64 device_id = 1 ;
519+ string host_path = 2 ;
520+ string tag = 3 ;
521+ }
522+
508523message OciRegistryUsernamePassword {
509524 // username to provide, empty means no username.
510525 string username = 1 ;
0 commit comments