Merge pull request #11412 from ilya-zuyev/ilyaz/gh_11333_kindnet_with_containerd

Skip network test with kubenet if container runtime is not docker
pull/11334/head
ilya-zuyev 2021-05-17 12:46:44 -07:00 committed by GitHub
commit 78618d04fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,12 @@ func TestNetworkPlugins(t *testing.T) {
t.Skipf("flannel is not yet compatible with Docker driver: iptables v1.8.3 (legacy): Couldn't load target `CNI-x': No such file or directory")
}
if ContainerRuntime() != "docker" && tc.name == "kubenet" {
// CNI is disabled when --network-plugin=kubenet option is passed. See cni.New(..) function
// But for containerd/crio CNI has to be configured
t.Skipf("Skipping the test as %s container runtimes requires CNI", ContainerRuntime())
}
start := time.Now()
MaybeParallel(t)
profile := UniqueProfileName(tc.name)