Skip to content

Commit 00481da

Browse files
committed
Preparation for release 1.0.0
1 parent 012c8be commit 00481da

File tree

6 files changed

+16
-6
lines changed

6 files changed

+16
-6
lines changed

SPEC.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Released versions of the spec are available as Git tags.
3232
| v0.7.0 | | Add `IntelRdt`field. |
3333
| | | Add `AdditionalGIDs` to `ContainerEdits` |
3434
| v0.8.0 | | Remove .ToOCI() functions from specs-go package. |
35+
| v1.0.0 | | Move minimum version logic to specs-go package. |
3536

3637
*Note*: spec loading fails on unknown fields and when the minimum required version is higher than the version specified in the spec. The minimum required version is determined based on the usage of fields mentioned in the table above. For example the minimum required version is v0.6.0 if the `Annotations` field is used in the spec, but `IntelRdt` is not.
3738
`MinimumRequiredVersion` API can be used to get the minimum required version.

cmd/cdi/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
2323
golang.org/x/mod v0.19.0 // indirect
2424
golang.org/x/sys v0.19.0 // indirect
25-
tags.cncf.io/container-device-interface/specs-go v0.8.0 // indirect
25+
tags.cncf.io/container-device-interface/specs-go v1.0.0 // indirect
2626
)
2727

2828
replace (

cmd/validate/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
gopkg.in/yaml.v2 v2.4.0 // indirect
1313
sigs.k8s.io/yaml v1.3.0 // indirect
1414
tags.cncf.io/container-device-interface v0.0.0 // indirect
15-
tags.cncf.io/container-device-interface/specs-go v0.8.0 // indirect
15+
tags.cncf.io/container-device-interface/specs-go v1.0.0 // indirect
1616
)
1717

1818
replace (

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
golang.org/x/sys v0.19.0
1111
gopkg.in/yaml.v2 v2.4.0
1212
sigs.k8s.io/yaml v1.3.0
13-
tags.cncf.io/container-device-interface/specs-go v0.8.0
13+
tags.cncf.io/container-device-interface/specs-go v1.0.0
1414
)
1515

1616
require (

schema/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/xeipuuv/gojsonschema v1.2.0
88
sigs.k8s.io/yaml v1.3.0
99
tags.cncf.io/container-device-interface v0.0.0
10-
tags.cncf.io/container-device-interface/specs-go v0.8.0
10+
tags.cncf.io/container-device-interface/specs-go v1.0.0
1111
)
1212

1313
require (

specs-go/version.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
const (
2727
// CurrentVersion is the current version of the Spec.
28-
CurrentVersion = "0.8.0"
28+
CurrentVersion = "1.0.0"
2929

3030
// vCurrent is the current version as a semver-comparable type
3131
vCurrent version = "v" + CurrentVersion
@@ -39,6 +39,7 @@ const (
3939
v060 version = "v0.6.0"
4040
v070 version = "v0.7.0"
4141
v080 version = "v0.8.0"
42+
v100 version = "v1.0.0"
4243

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

6163
// ValidateVersion checks whether the specified spec version is valid.
@@ -138,9 +140,16 @@ func (r requiredVersionMap) requiredVersion(spec *Spec) version {
138140
return minVersion
139141
}
140142

143+
// requiresV100 returns true if the spec uses v1.0.0 features.
144+
// Since the v1.0.0 spec bump was due to moving the minimum version checks to
145+
// the spec package, there are no explicit spec changes.
146+
func requiresV100(_ *Spec) bool {
147+
return false
148+
}
149+
141150
// requiresV080 returns true if the spec uses v0.8.0 features.
142151
// Since the v0.8.0 spec bump was due to the removed .ToOCI functions on the
143-
// spec types, there are explicit spec changes.
152+
// spec types, there are no explicit spec changes.
144153
func requiresV080(_ *Spec) bool {
145154
return false
146155
}

0 commit comments

Comments
 (0)