Make libvirt-coreos generate a .kubeconfig file and have e2e tests use it

This commit is contained in:
Lénaïc Huard
2015-03-13 15:54:53 +01:00
parent 27c51ee6f5
commit efe345f8b6
2 changed files with 12 additions and 8 deletions

View File

@@ -220,6 +220,13 @@ function kube-up {
rm $domain_xml
done
export KUBECONFIG="${HOME}/.kube/.kubeconfig"
local kubectl="${KUBE_ROOT}/cluster/kubectl.sh"
"${kubectl}" config set-cluster libvirt-coreos --server=http://${KUBE_MASTER_IP-}:8080
"${kubectl}" config set-context libvirt-coreos --cluster=libvirt-coreos
"${kubectl}" config use-context libvirt-coreos --cluster=libvirt-coreos
wait-cluster-readiness
echo "Kubernetes cluster is running. The master is running at:"