Skip to content

Commit 8c5eb9b

Browse files
committed
KEP3063: Update CRI structures info
1 parent 475b18a commit 8c5eb9b

File tree

1 file changed

+30
-9
lines changed
  • keps/sig-node/3063-dynamic-resource-allocation

1 file changed

+30
-9
lines changed

keps/sig-node/3063-dynamic-resource-allocation/README.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,22 +2024,43 @@ message NodePrepareResourceResponse {
20242024
}
20252025
```
20262026

2027-
CRI protocol MUST be extended for this purpose, e.g. list of CDI
2028-
device ids should be added to the CRI Device structure:
2027+
CRI protocol MUST be extended for this purpose:
2028+
2029+
* CDIDevice structure should be added to the CRI specification
20292030

20302031
```protobuf
2031-
// Device specifies a host device to mount into a container.
2032-
message Device {
2033-
...
2034-
string permissions = 3;
2035-
// Set of fully qualified CDI device names in the following
2032+
// CDIDevice specifies a CDI device information.
2033+
message CDIDevice {
2034+
// Fully qualified CDI device name in the following
20362035
// format: <kind>=<name>,
20372036
// where
20382037
// kind (string) is a device vendor identifier
20392038
// name (string) is a device name
20402039
// for example: vendor.com/gpu=gpudevice1
2041-
// see more details in the [CDI specification](https://github.com/container-orchestrated-devices/container-device-interface/blob/master/SPEC.md)
2042-
repeated string cdi_device = 4;
2040+
// see more details in the CDI specification:
2041+
// https://github.com/container-orchestrated-devices/container-device-interface/blob/main/SPEC.md
2042+
string name = 1;
2043+
}
2044+
```
2045+
2046+
* CDI devices should be added to the ContainerConfig structure:
2047+
2048+
```protobuf
2049+
// ContainerConfig holds all the required and optional fields for creating a
2050+
// container.
2051+
message ContainerConfig {
2052+
// Metadata of the container. This information will uniquely identify the
2053+
// container, and the runtime should leverage this to ensure correct
2054+
// operation. The runtime may also use this information to improve UX, such
2055+
// as by constructing a readable name.
2056+
ContainerMetadata metadata = 1 ;
2057+
// Image to use.
2058+
ImageSpec image = 2;
2059+
// Command to execute (i.e., entrypoint for docker)
2060+
repeated string command = 3;
2061+
...
2062+
// CDI devices for the container.
2063+
repeated CDIDevice cdi_devices = 17;
20432064
}
20442065
```
20452066

0 commit comments

Comments
 (0)