Skip to content

Commit

Permalink
tests, net: Use cniVersion 0.3.1 instead of 1.0.0
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
EdDev committed Nov 6, 2023
1 parent 6b3f37f commit cadfc3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/network/bindingplugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cadfc3a

Please sign in to comment.