Skip to content

Commit 5e42c9b

Browse files
committed
specs-go: bump version to 1.1.0.
Bump current version to 1.1.0, include net devices in minimum required version check. Signed-off-by: Krisztian Litkey <[email protected]>
1 parent 7c3cbe7 commit 5e42c9b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

specs-go/version.go

Lines changed: 9 additions & 1 deletion
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 = "1.0.0"
28+
CurrentVersion = "1.1.0"
2929

3030
// vCurrent is the current version as a semver-comparable type
3131
vCurrent version = "v" + CurrentVersion
@@ -150,12 +150,20 @@ func requiresV110(spec *Spec) bool {
150150
}
151151
}
152152

153+
if len(spec.ContainerEdits.NetDevices) != 0 {
154+
return true
155+
}
156+
153157
for _, dev := range spec.Devices {
154158
if i := dev.ContainerEdits.IntelRdt; i != nil {
155159
if i.Schemata != nil || i.EnableMonitoring {
156160
return true
157161
}
158162
}
163+
164+
if len(dev.ContainerEdits.NetDevices) != 0 {
165+
return true
166+
}
159167
}
160168

161169
return false

0 commit comments

Comments
 (0)