mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
CRI: add CDIDevice to the ContainerConfig
This commit is contained in:
parent
e519921666
commit
fb3f8ac3c3
File diff suppressed because it is too large
Load Diff
@ -1017,6 +1017,15 @@ message Device {
|
||||
string permissions = 3;
|
||||
}
|
||||
|
||||
// CDIDevice specifies a CDI device information.
|
||||
message CDIDevice {
|
||||
// Fully qualified CDI device name
|
||||
// for example: vendor.com/gpu=gpudevice1
|
||||
// see more details in the CDI specification:
|
||||
// https://github.com/container-orchestrated-devices/container-device-interface/blob/main/SPEC.md
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// ContainerConfig holds all the required and optional fields for creating a
|
||||
// container.
|
||||
message ContainerConfig {
|
||||
@ -1074,6 +1083,9 @@ message ContainerConfig {
|
||||
LinuxContainerConfig linux = 15;
|
||||
// Configuration specific to Windows containers.
|
||||
WindowsContainerConfig windows = 16;
|
||||
|
||||
// CDI devices for the container.
|
||||
repeated CDIDevice CDI_devices = 17;
|
||||
}
|
||||
|
||||
message CreateContainerRequest {
|
||||
|
Loading…
Reference in New Issue
Block a user