DRA: fix CDI spec version

The latest CDI release includes spec version check that fails
if version is less than 0.3.0:
  https://github.com/container-orchestrated-devices/container-device-interface/blob/v0.5.4/pkg/cdi/version.go#L42

Updating CDI spec version to 0.3.0 in the test kubelet plugin code
should fix e2e test failures on the CRI runtimes that use CDI >= 0.5.4
(Containerd master atm, CRI-O soon).
This commit is contained in:
Ed Bartosh 2023-03-05 16:23:36 +02:00
parent d48b8167f7
commit 35fd124f4d

View File

@ -145,7 +145,7 @@ func (ex *ExamplePlugin) NodePrepareResource(ctx context.Context, req *drapbv1.N
vendor := ex.driverName vendor := ex.driverName
class := "test" class := "test"
spec := &spec{ spec := &spec{
Version: "0.2.0", // This has to be a version accepted by the runtimes. Version: "0.3.0", // This has to be a version accepted by the runtimes.
Kind: vendor + "/" + class, Kind: vendor + "/" + class,
// At least one device is required and its entry must have more // At least one device is required and its entry must have more
// than just the name. // than just the name.