Revert "Revert "Fix libvirt-coreos cluster""

This reverts commit 889d724c19.
pull/6/head
Mike Danese 2015-07-23 21:03:23 -07:00
parent 4e6325a3da
commit 0e10fac31e
2 changed files with 3 additions and 8 deletions

View File

@ -80,7 +80,9 @@ function create-kubeconfig() {
fi
"${kubectl}" config set-cluster "${CONTEXT}" "${cluster_args[@]}"
if [ -n "${user_args[@]:-}" ]; then
"${kubectl}" config set-credentials "${CONTEXT}" "${user_args[@]}"
fi
"${kubectl}" config set-context "${CONTEXT}" --cluster="${CONTEXT}" --user="${CONTEXT}"
"${kubectl}" config use-context "${CONTEXT}" --cluster="${CONTEXT}"

View File

@ -200,7 +200,6 @@ function wait-cluster-readiness {
function kube-up {
detect-master
detect-minions
get-password
initialize-pool keep_base_image
initialize-network
@ -328,12 +327,6 @@ function test-teardown {
kube-down
}
# Set the {KUBE_USER} and {KUBE_PASSWORD} environment values required to interact with provider
function get-password {
export KUBE_USER=''
export KUBE_PASSWORD=''
}
# SSH to a node by name or IP ($1) and run a command ($2).
function ssh-to-node {
local node="$1"