diff --git a/hack/e2e.go b/hack/e2e.go index 414b2da01f8..4a828d588ba 100644 --- a/hack/e2e.go +++ b/hack/e2e.go @@ -150,6 +150,7 @@ func main() { switch { case *ctlCmd != "": ctlArgs := strings.Fields(*ctlCmd) + os.Setenv("KUBE_CONFIG_FILE", "config-test.sh") failure = !finishRunning("'kubectl "+*ctlCmd+"'", exec.Command(path.Join(versionRoot, "cluster/kubectl.sh"), ctlArgs...)) case *test: failure = Test()