Open jc-rh opened 3 years ago
Both config files are valid. It works if either one is removed from the KUBECONFIG var.
yeah, I think the -v $KUBECONFIG:/kubeconfig -e KUBECONFIG=/kubeconfig
does not allow for that. it's assuming a single file
If you truely need this, you can do -v $DIR_WITH_KUBECONFIGS:/kubeconfig -e KUBECONFIG=/kubeconfig/kube1.conf:/kubeconfig/kube2.conf
but cnf-tests cant run on multiple clusters, so I think you'd better pass it a single conf file
Right, we never meant to run it on multiple clusters. It's just a convenience thing. We often switch contexts between clusters and compare results. And it's not super straightforward to merge multiple cluster config into one single file.
Failure [0.000 seconds] [BeforeSuite] BeforeSuite /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/validationsuite/test_suite_test.go:55
Verify the KUBECONFIG environment variable Expected <*client.ClientSet | 0x0>: nil not to be nil