Skip to content

Commit 801f1ad

Browse files
committed
Set earliest supported spec verison to v0.3.0
Signed-off-by: Evan Lezar <[email protected]>
1 parent 42cb494 commit 801f1ad

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pkg/cdi/regressions_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func TestCDIInjectionRace(t *testing.T) {
4343
{description: "expect properly injected resolvable CDI devices",
4444
cdiSpecFiles: []string{
4545
`
46-
cdiVersion: "0.2.0"
46+
cdiVersion: "0.3.0"
4747
kind: "vendor1.com/device"
4848
devices:
4949
- name: foo
@@ -60,7 +60,7 @@ containerEdits:
6060
- "VENDOR1=present"
6161
`,
6262
`
63-
cdiVersion: "0.2.0"
63+
cdiVersion: "0.3.0"
6464
kind: "vendor2.com/device"
6565
devices:
6666
- name: bar

pkg/cdi/spec_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ func TestRequiredVersion(t *testing.T) {
538538
{
539539
description: "empty spec returns lowest version",
540540
spec: &cdi.Spec{},
541-
expectedVersion: "0.2.0",
541+
expectedVersion: "0.3.0",
542542
},
543543
{
544544
description: "hostPath set returns version 0.5.0",
@@ -628,7 +628,7 @@ func TestRequiredVersion(t *testing.T) {
628628
},
629629
},
630630
},
631-
expectedVersion: "0.2.0",
631+
expectedVersion: "0.3.0",
632632
},
633633
}
634634

pkg/cdi/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const (
3939
v050 version = "v0.5.0"
4040

4141
// vEarliest is the earliest supported version of the CDI specification
42-
vEarliest version = v020
42+
vEarliest version = v030
4343
)
4444

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

0 commit comments

Comments
 (0)