Skip to content

Commit

Permalink
pkg/cdi: expose [specs.]CurrentVersion.
Browse files Browse the repository at this point in the history
Alias specs.CurrentVersion as pkg/cdi.CurrentVersion.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Oct 27, 2022
1 parent 98524c3 commit a5fbc2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cdi/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
// func generateDeviceSpecs() error {
// registry := cdi.GetRegistry()
// spec := &specs.Spec{
// Version: specVersion,
// Version: specs.CurrentVersion,
// Kind: vendor+"/"+class,
// }
//
Expand Down Expand Up @@ -216,7 +216,7 @@
// registry := cdi.GetRegistry()
// devices := getContainerDevs(ctr, vendor, class)
// spec := &specs.Spec{
// Version: specVersion,
// Version: specs.CurrentVersion,
// Kind: vendor+"/"+class,
// }
//
Expand Down
3 changes: 3 additions & 0 deletions pkg/cdi/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ import (
)

const (
// CurrentVersion is the current vesion of the CDI Spec.
CurrentVersion = cdi.CurrentVersion

// defaultSpecExt is the file extension for the default encoding.
defaultSpecExt = ".yaml"
)
Expand Down

0 comments on commit a5fbc2f

Please sign in to comment.