File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 180180// func generateDeviceSpecs() error {
181181// registry := cdi.GetRegistry()
182182// spec := &specs.Spec{
183- // Version: specVersion ,
183+ // Version: specs.CurrentVersion ,
184184// Kind: vendor+"/"+class,
185185// }
186186//
216216// registry := cdi.GetRegistry()
217217// devices := getContainerDevs(ctr, vendor, class)
218218// spec := &specs.Spec{
219- // Version: specVersion ,
219+ // Version: specs.CurrentVersion ,
220220// Kind: vendor+"/"+class,
221221// }
222222//
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ import (
3232)
3333
3434const (
35+ // CurrentVersion is the current vesion of the CDI Spec.
36+ CurrentVersion = cdi .CurrentVersion
37+
3538 // defaultSpecExt is the file extension for the default encoding.
3639 defaultSpecExt = ".yaml"
3740)
You can’t perform that action at this time.
0 commit comments