Make libvirt-coreos cluster use create-kubeconfig

This commit is contained in:
Lénaïc Huard
2015-04-14 10:03:12 +02:00
committed by Jeff Lowdermilk
parent 4f6dc99075
commit 08f17bfa70
3 changed files with 9 additions and 14 deletions

View File

@@ -120,11 +120,6 @@ elif [[ "$KUBERNETES_PROVIDER" == "vagrant" ]]; then
config=(
"--kubeconfig=$HOME/.kubernetes_vagrant_kubeconfig"
)
elif [[ "$KUBERNETES_PROVIDER" == "libvirt-coreos" ]]; then
detect-master > /dev/null
config=(
"--server=http://${KUBE_MASTER_IP}:8080"
)
fi
echo "current-context: \"$(${kubectl} "${config[@]:+${config[@]}}" config view -o template --template='{{index . "current-context"}}')\"" >&2