feat(e2e): log kubernetes version

pull/606/head
Adam Reese 10 years ago
parent 11e5d3e697
commit 00cf94bd6a

@ -33,6 +33,9 @@ func TestHelm(t *testing.T) {
t.Fatal("Not connected to kubernetes")
}
t.Log("Kuberneter Version")
t.Log(kube.Version())
if !helmRunning(helm) {
t.Fatal("Helm is not installed")
}

@ -74,3 +74,8 @@ func (k *KubeContext) Running() bool {
_, err := exec.Command(k.Path, "cluster-info").CombinedOutput()
return err == nil
}
func (k *KubeContext) Version() string {
out, _ := exec.Command(k.Path, "version").Output()
return string(out)
}

Loading…
Cancel
Save