Skip to content

Commit 3f1a17b

Browse files
GPU Operator Support
Signed-off-by: SurbhiKakarya <116319529+Sweetsurbhi88@users.noreply.github.com> Co-authored-by: Alex Zenla <alex@edera.dev>
1 parent 5953a6b commit 3f1a17b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

protect/control/v1/common.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ message WorkloadBlockDeviceSpec {
161161
BlockDeviceMountOptions mount_options = 3;
162162
}
163163

164+
message WorkloadPciDeviceSpec {
165+
string location = 1;
166+
}
167+
164168
message BlockDeviceMountOptions {
165169
bool readonly = 1;
166170
string permissions = 2;
@@ -326,6 +330,7 @@ message WorkloadSpec {
326330
string hostname = 10;
327331
repeated WorkloadBlockDeviceSpec block_devices = 11;
328332
optional int32 oom_score_adj = 12;
333+
repeated WorkloadPciDeviceSpec pci_devices = 13;
329334
}
330335

331336
message CgroupLimit {
@@ -368,6 +373,7 @@ message WorkloadStatus {
368373
WorkloadBlockDeviceStatus block_device_status = 4;
369374
WorkloadMountStatus mount_status = 5;
370375
google.protobuf.Timestamp created_at = 6;
376+
WorkloadPciDeviceStatus pci_device_status = 7;
371377
}
372378

373379
message WorkloadBlockDeviceInfo {
@@ -378,10 +384,18 @@ message WorkloadBlockDeviceInfo {
378384
bool loop_dev = 5;
379385
}
380386

387+
message WorkloadPciDeviceInfo {
388+
string location = 1;
389+
}
390+
381391
message WorkloadBlockDeviceStatus {
382392
repeated WorkloadBlockDeviceInfo devices = 1;
383393
}
384394

395+
message WorkloadPciDeviceStatus {
396+
repeated WorkloadPciDeviceInfo devices = 1;
397+
}
398+
385399
message WorkloadMountInfo {
386400
string tag = 2;
387401
string host_path = 3;

0 commit comments

Comments
 (0)