From 35fd124f4df4ed5fae09dba4497dbe256bcc57ac Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Sun, 5 Mar 2023 16:23:36 +0200 Subject: [PATCH] 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). --- test/e2e/dra/test-driver/app/kubeletplugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/dra/test-driver/app/kubeletplugin.go b/test/e2e/dra/test-driver/app/kubeletplugin.go index e24aeb44a54..6e15f6310e0 100644 --- a/test/e2e/dra/test-driver/app/kubeletplugin.go +++ b/test/e2e/dra/test-driver/app/kubeletplugin.go @@ -145,7 +145,7 @@ func (ex *ExamplePlugin) NodePrepareResource(ctx context.Context, req *drapbv1.N vendor := ex.driverName class := "test" 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, // At least one device is required and its entry must have more // than just the name.