Skip to content

Commit

Permalink
Set earliest supported spec verison to v0.3.0
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <elezar@nvidia.com>
  • Loading branch information
elezar committed Nov 24, 2022
1 parent 40eab6f commit c2d34df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/cdi/regressions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestCDIInjectionRace(t *testing.T) {
{description: "expect properly injected resolvable CDI devices",
cdiSpecFiles: []string{
`
cdiVersion: "0.2.0"
cdiVersion: "0.3.0"
kind: "vendor1.com/device"
devices:
- name: foo
Expand All @@ -60,7 +60,7 @@ containerEdits:
- "VENDOR1=present"
`,
`
cdiVersion: "0.2.0"
cdiVersion: "0.3.0"
kind: "vendor2.com/device"
devices:
- name: bar
Expand Down
4 changes: 2 additions & 2 deletions pkg/cdi/spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ func TestRequiredVersion(t *testing.T) {
{
description: "empty spec returns lowest version",
spec: &cdi.Spec{},
expectedVersion: "0.2.0",
expectedVersion: "0.3.0",
},
{
description: "hostPath set returns version 0.5.0",
Expand Down Expand Up @@ -628,7 +628,7 @@ func TestRequiredVersion(t *testing.T) {
},
},
},
expectedVersion: "0.2.0",
expectedVersion: "0.3.0",
},
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cdi/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const (
v050 version = "v0.5.0"

// vEarliest is the earliest supported version of the CDI specification
vEarliest version = v020
vEarliest version = v030
)

// validSpecVersions stores a map of spec versions to functions to check the required versions.
Expand Down

0 comments on commit c2d34df

Please sign in to comment.