From 0d204dbae89584ac97be9e476c1a8a782663dc9c Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 8 Oct 2020 14:05:39 -0400 Subject: [PATCH] Fix openshift-sdn mode detection in e2e tests Our attempt to determine the plugin mode was generating pluginName="Flag --config has been deprecated, use --kubeconfig instead\nredhat/openshift-ovs-networkpolicy" --- test/extended/networking/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/extended/networking/util.go b/test/extended/networking/util.go index 62637d02e7c0..8184dfb35b4b 100644 --- a/test/extended/networking/util.go +++ b/test/extended/networking/util.go @@ -136,7 +136,7 @@ func networkPluginName() string { if cachedNetworkPluginName == nil { // We don't use exutil.NewCLI() here because it can't be called from BeforeEach() out, err := exec.Command( - "oc", "--config="+exutil.KubeConfigPath(), + "oc", "--kubeconfig="+exutil.KubeConfigPath(), "get", "clusternetwork", "default", "--template={{.pluginName}}", ).CombinedOutput()