From 5364222fc8103a9357a0c54672d3c684a8dfa4e2 Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Tue, 9 Feb 2021 14:05:17 -0800 Subject: [PATCH] We set the network plugin to cni with containerd runtime --- test/integration/net_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/integration/net_test.go b/test/integration/net_test.go index 9fff54dc56..081ecc5c49 100644 --- a/test/integration/net_test.go +++ b/test/integration/net_test.go @@ -108,9 +108,12 @@ func TestNetworkPlugins(t *testing.T) { out := rr.Stdout.String() if tc.kubeletPlugin == "" { - if strings.Contains(out, "--network-plugin") { + if strings.Contains(out, "--network-plugin") && ContainerRuntime() == "docker" { t.Errorf("expected no network plug-in, got %s", out) } + if !strings.Contains(out, "--network-plugin=cni") && ContainerRuntime() != "docker" { + t.Errorf("expected cni network plugin with conatinerd/crio, got %s", out) + } } else { if !strings.Contains(out, fmt.Sprintf("--network-plugin=%s", tc.kubeletPlugin)) { t.Errorf("expected --network-plugin=%s, got %s", tc.kubeletPlugin, out)