Merge pull request #5437 from lhuard1A/libvirt-coreos_kubeconfig
Make libvirt-coreos generate a .kubeconfig file and have e2e tests use it
This commit is contained in:
@@ -223,6 +223,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:"
|
||||
|
Reference in New Issue
Block a user