From cadfc3a90304e105dfe3c02420572a65651f7789 Mon Sep 17 00:00:00 2001 From: Edward Haas Date: Sat, 28 Oct 2023 11:42:07 +0300 Subject: [PATCH] tests, net: Use cniVersion 0.3.1 instead of 1.0.0 On CI, an old version of `multus-cni` is used (3.8). Therefore, it is not possible to use the 1.0.0 cni version. Once the CI is rectified to deploy a more recent `multus` version, this change can be reverted. Signed-off-by: Edward Haas --- tests/network/bindingplugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/network/bindingplugin.go b/tests/network/bindingplugin.go index b00c377a421f..84119f8eb938 100644 --- a/tests/network/bindingplugin.go +++ b/tests/network/bindingplugin.go @@ -98,7 +98,7 @@ var _ = SIGDescribe("[Serial]network binding plugin", Serial, decorators.NetCust }) func createBasicNetworkAttachmentDefinition(namespace, nadName, typeName string) error { - const netAttDefBasicFormat = `{"apiVersion":"k8s.cni.cncf.io/v1","kind":"NetworkAttachmentDefinition","metadata":{"name":%q,"namespace":%q},"spec":{"config":"{ \"cniVersion\": \"1.0.0\", \"name\": \"%s\", \"plugins\": [{\"type\": \"%s\"}]}"}}` + const netAttDefBasicFormat = `{"apiVersion":"k8s.cni.cncf.io/v1","kind":"NetworkAttachmentDefinition","metadata":{"name":%q,"namespace":%q},"spec":{"config":"{ \"cniVersion\": \"0.3.1\", \"name\": \"%s\", \"plugins\": [{\"type\": \"%s\"}]}"}}` return createNetworkAttachmentDefinition( kubevirt.Client(), nadName,