diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 91d1b4145ce..7f6cb443c97 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -2206,9 +2206,6 @@ func runKubemciCmd(args ...string) (string, error) { // kubemci is assumed to be in PATH. kubemci := "kubemci" b := new(kubectlBuilder) - if TestContext.KubeConfig != "" { - args = append(args, "--"+clientcmd.RecommendedConfigPathFlag+"="+TestContext.KubeConfig) - } args = append(args, "--gcp-project="+TestContext.CloudConfig.ProjectID) b.cmd = exec.Command(kubemci, args...)