Skip to content

Commit fcd46f3

Browse files
committed
Bump spec version to v0.8.0
Signed-off-by: Evan Lezar <[email protected]>
1 parent ff280d6 commit fcd46f3

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

SPEC.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Released versions of the spec are available as Git tags.
2929
| v0.6.0 | | Add `Annotations` field to `Spec` and `Device` specifications |
3030
| | | Allow dots (`.`) in name segment of `Kind` field. |
3131
| 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. |
3334

3435
*Note*: The initial release of a **spec** with version `v0.x.0` will be tagged as
3536
`v0.x.0` with subsequent changes to the API applicable to this version tagged as `v0.x.y`.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
golang.org/x/mod v0.4.2
1212
golang.org/x/sys v0.1.0
1313
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
1515
)
1616

1717
require (

pkg/cdi/version.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const (
4040
v050 version = "v0.5.0"
4141
v060 version = "v0.6.0"
4242
v070 version = "v0.7.0"
43+
v080 version = "v0.8.0"
4344

4445
// vEarliest is the earliest supported version of the CDI specification
4546
vEarliest version = v030
@@ -56,6 +57,7 @@ var validSpecVersions = requiredVersionMap{
5657
v050: requiresV050,
5758
v060: requiresV060,
5859
v070: requiresV070,
60+
v080: requiresV080,
5961
}
6062

6163
// MinimumRequiredVersion determines the minimum spec version for the input spec.
@@ -120,6 +122,13 @@ func (r requiredVersionMap) requiredVersion(spec *cdi.Spec) version {
120122
return minVersion
121123
}
122124

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+
123132
// requiresV070 returns true if the spec uses v0.7.0 features
124133
func requiresV070(spec *cdi.Spec) bool {
125134
if spec.ContainerEdits.IntelRdt != nil {

specs-go/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package specs
33
import "os"
44

55
// CurrentVersion is the current version of the Spec.
6-
const CurrentVersion = "0.7.0"
6+
const CurrentVersion = "0.8.0"
77

88
// Spec is the base configuration for CDI
99
type Spec struct {

0 commit comments

Comments
 (0)