Skip to content

Commit 0761268

Browse files
committed
Bump spec version to v0.9.0
Signed-off-by: Evan Lezar <[email protected]>
1 parent 039c460 commit 0761268

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
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+
| v0.9.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 v0.9.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 v0.9.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 v0.9.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 v0.9.0
1111
)
1212

1313
require (

specs-go/version.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const (
3939
v060 version = "v0.6.0"
4040
v070 version = "v0.7.0"
4141
v080 version = "v0.8.0"
42+
v090 version = "v0.9.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+
v090: requiresV090,
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+
// requiresV090 returns true if the spec uses v0.9.0 features.
144+
// Since the v0.9.0 spec bump was due to moving the minimum version checks to
145+
// the spec pacakge, there are no explicit spec changes.
146+
func requiresV090(_ *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 explicit no spec changes.
144153
func requiresV080(_ *Spec) bool {
145154
return false
146155
}

0 commit comments

Comments
 (0)