make e2e test compatible with go1.13

This commit is contained in:
Adrien Trouillaud
2020-06-29 15:31:48 -07:00
parent 72a0be3f45
commit e00e4c2bba

View File

@@ -23,6 +23,12 @@ var (
nodeName string
)
// go1.13 compatibility cf. https://github.com/golang/go/issues/31859
var _ = func() bool {
testing.Init()
return true
}()
func init() {
flag.StringVar(&kubeconfig, "kubeconfig", "", "path to the kubeconfig file to use when running the test suite outside a kubernetes cluster")
flag.StringVar(&namespace, "namespace", defaultNamespace, "the name of the kubernetes namespace to use for running the test suite (i.e. where to create pods)")