File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ Released versions of the spec are available as Git tags.
29
29
| v0.6.0 | | Add ` Annotations ` field to ` Spec ` and ` Device ` specifications |
30
30
| | | Allow dots (` . ` ) in name segment of ` Kind ` field. |
31
31
| v0.7.0 | | Add ` IntelRdt ` field. |
32
- | v0.7.0 | | Add ` AdditionalGIDs ` to ` ContainerEdits ` |
32
+ | | | Add ` AdditionalGIDs ` to ` ContainerEdits ` |
33
+ | v0.8.0 | | Remove .ToOCI() functions from specs-go package. |
33
34
34
35
* Note* : The initial release of a ** spec** with version ` v0.x.0 ` will be tagged as
35
36
` v0.x.0 ` with subsequent changes to the API applicable to this version tagged as ` v0.x.y ` .
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ require (
11
11
golang.org/x/mod v0.4.2
12
12
golang.org/x/sys v0.1.0
13
13
sigs.k8s.io/yaml v1.3.0
14
- tags.cncf.io/container-device-interface/specs-go v0.7 .0
14
+ tags.cncf.io/container-device-interface/specs-go v0.8 .0
15
15
)
16
16
17
17
require (
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ const (
40
40
v050 version = "v0.5.0"
41
41
v060 version = "v0.6.0"
42
42
v070 version = "v0.7.0"
43
+ v080 version = "v0.8.0"
43
44
44
45
// vEarliest is the earliest supported version of the CDI specification
45
46
vEarliest version = v030
@@ -56,6 +57,7 @@ var validSpecVersions = requiredVersionMap{
56
57
v050 : requiresV050 ,
57
58
v060 : requiresV060 ,
58
59
v070 : requiresV070 ,
60
+ v080 : requiresV080 ,
59
61
}
60
62
61
63
// MinimumRequiredVersion determines the minimum spec version for the input spec.
@@ -120,6 +122,13 @@ func (r requiredVersionMap) requiredVersion(spec *cdi.Spec) version {
120
122
return minVersion
121
123
}
122
124
125
+ // requiresV080 returns true if the spec uses v0.8.0 features.
126
+ // Since the v0.8.0 spec bump was due to the removed .ToOCI functions on the
127
+ // spec types, there are explicit spec changes.
128
+ func requiresV080 (_ * cdi.Spec ) bool {
129
+ return false
130
+ }
131
+
123
132
// requiresV070 returns true if the spec uses v0.7.0 features
124
133
func requiresV070 (spec * cdi.Spec ) bool {
125
134
if spec .ContainerEdits .IntelRdt != nil {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package specs
3
3
import "os"
4
4
5
5
// CurrentVersion is the current version of the Spec.
6
- const CurrentVersion = "0.7 .0"
6
+ const CurrentVersion = "0.8 .0"
7
7
8
8
// Spec is the base configuration for CDI
9
9
type Spec struct {
You can’t perform that action at this time.
0 commit comments