Skip to content

Commit 09c7768

Browse files
committed
specs-go: fix minimum version check for IntelRdt.
Require 1.1.0 if at least one of the global or device specific container edits use IntelRdt. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
1 parent 2919a1d commit 09c7768

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

specs-go/version.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,15 @@ func requiresV110(spec *Spec) bool {
149149
return true
150150
}
151151
}
152+
153+
for _, dev := range spec.Devices {
154+
if i := dev.ContainerEdits.IntelRdt; i != nil {
155+
if i.Schemata != nil || i.EnableMonitoring {
156+
return true
157+
}
158+
}
159+
}
160+
152161
return false
153162
}
154163

0 commit comments

Comments
 (0)