test for hairpinMode=true for default CNI with containerd and cri-o runtimes

pull/11374/head
Ilya Zuyev 2021-05-11 11:30:47 -07:00
parent c31bd57f93
commit 7e5e82b8d7
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@ func TestNetworkPlugins(t *testing.T) {
podLabel string
hairpin bool
}{
{"auto", []string{}, "", "", false},
// for containerd and crio runtimes kindnet CNI is used by default and hairpin is enabled
{"auto", []string{}, "", "", ContainerRuntime() != "docker"},
{"kubenet", []string{"--network-plugin=kubenet"}, "kubenet", "", true},
{"bridge", []string{"--cni=bridge"}, "cni", "", true},
{"enable-default-cni", []string{"--enable-default-cni=true"}, "cni", "", true},