Skip to content

Running "make" shouldn't use $HOME/.kube/config #4046

@jeffmendoza

Description

@jeffmendoza

The default make target should only run self-contained unit tests, not those that depend on the users k8s config.

ok  	istio.io/istio/pilot/pkg/config/clusterregistry	0.111s
2018-03-07T18:16:45.065247Z	info	Using user home k8s config - might affect real cluster ! Not found:  /home/jeffmendoza/go/src/istio.io/istio/pilot/pkg/config/kube/crd/../../../platform/kube/config
--- FAIL: TestStoreInvariant (0.00s)
	client_test.go:54: kubernetes configuration file "/home/jeffmendoza/.kube/config" does not exist
2018-03-07T18:16:45.066015Z	info	Using user home k8s config - might affect real cluster ! Not found:  /home/jeffmendoza/go/src/istio.io/istio/pilot/pkg/config/kube/crd/../../../platform/kube/config
--- FAIL: TestIstioConfig (0.00s)
	client_test.go:54: kubernetes configuration file "/home/jeffmendoza/.kube/config" does not exist
2018-03-07T18:16:45.066093Z	info	Using user home k8s config - might affect real cluster ! Not found:  /home/jeffmendoza/go/src/istio.io/istio/pilot/pkg/config/kube/crd/../../../platform/kube/config
2018-03-07T18:16:45.066156Z	info	Using user home k8s config - might affect real cluster ! Not found:  /home/jeffmendoza/go/src/istio.io/istio/pilot/pkg/config/kube/crd/../../../platform/kube/config
--- FAIL: TestControllerEvents (0.00s)
	client_test.go:54: kubernetes configuration file "/home/jeffmendoza/.kube/config" does not exist
2018-03-07T18:16:45.066220Z	info	Using user home k8s config - might affect real cluster ! Not found:  /home/jeffmendoza/go/src/istio.io/istio/pilot/pkg/config/kube/crd/../../../platform/kube/config
--- FAIL: TestControllerCacheFreshness (0.00s)
	client_test.go:54: kubernetes configuration file "/home/jeffmendoza/.kube/config" does not exist
2018-03-07T18:16:45.066280Z	info	Using user home k8s config - might affect real cluster ! Not found:  /home/jeffmendoza/go/src/istio.io/istio/pilot/pkg/config/kube/crd/../../../platform/kube/config
--- FAIL: TestControllerClientSync (0.00s)
	client_test.go:54: kubernetes configuration file "/home/jeffmendoza/.kube/config" does not exist
FAIL
FAIL	istio.io/istio/pilot/pkg/config/kube/crd	0.215s

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions