Skip to content

Commit a5fbc2f

Browse files
committed
pkg/cdi: expose [specs.]CurrentVersion.
Alias specs.CurrentVersion as pkg/cdi.CurrentVersion. Signed-off-by: Krisztian Litkey <[email protected]>
1 parent 98524c3 commit a5fbc2f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pkg/cdi/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
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
//
@@ -216,7 +216,7 @@
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
//

pkg/cdi/spec.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ import (
3232
)
3333

3434
const (
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
)

0 commit comments

Comments
 (0)