@@ -10,6 +10,7 @@ type Spec struct {
10
10
Version string `json:"cdiVersion"`
11
11
Kind string `json:"kind"`
12
12
// Annotations add meta information per CDI spec. Note these are CDI-specific and do not affect container metadata.
13
+ // Added in v0.6.0.
13
14
Annotations map [string ]string `json:"annotations,omitempty"`
14
15
Devices []Device `json:"devices"`
15
16
ContainerEdits ContainerEdits `json:"containerEdits,omitempty"`
@@ -19,6 +20,7 @@ type Spec struct {
19
20
type Device struct {
20
21
Name string `json:"name"`
21
22
// Annotations add meta information per device. Note these are CDI-specific and do not affect container metadata.
23
+ // Added in v0.6.0.
22
24
Annotations map [string ]string `json:"annotations,omitempty"`
23
25
ContainerEdits ContainerEdits `json:"containerEdits"`
24
26
}
@@ -29,14 +31,14 @@ type ContainerEdits struct {
29
31
DeviceNodes []* DeviceNode `json:"deviceNodes,omitempty"`
30
32
Hooks []* Hook `json:"hooks,omitempty"`
31
33
Mounts []* Mount `json:"mounts,omitempty"`
32
- IntelRdt * IntelRdt `json:"intelRdt,omitempty"`
33
- AdditionalGIDs []uint32 `json:"additionalGids,omitempty"`
34
+ IntelRdt * IntelRdt `json:"intelRdt,omitempty"` // Added in v0.7.0
35
+ AdditionalGIDs []uint32 `json:"additionalGids,omitempty"` // Added in v0.7.0
34
36
}
35
37
36
38
// DeviceNode represents a device node that needs to be added to the OCI spec.
37
39
type DeviceNode struct {
38
40
Path string `json:"path"`
39
- HostPath string `json:"hostPath,omitempty"`
41
+ HostPath string `json:"hostPath,omitempty"` // Added in v0.5.0
40
42
Type string `json:"type,omitempty"`
41
43
Major int64 `json:"major,omitempty"`
42
44
Minor int64 `json:"minor,omitempty"`
@@ -51,7 +53,7 @@ type Mount struct {
51
53
HostPath string `json:"hostPath"`
52
54
ContainerPath string `json:"containerPath"`
53
55
Options []string `json:"options,omitempty"`
54
- Type string `json:"type,omitempty"`
56
+ Type string `json:"type,omitempty"` // Added in v0.4.0
55
57
}
56
58
57
59
// Hook represents a hook that needs to be added to the OCI spec.
0 commit comments