Make libvirt-CoreOS cluster able to run e2e tests

This commit is contained in:
Lénaïc Huard
2015-03-02 17:13:57 +01:00
parent c763fbf98a
commit d64f0f1183
3 changed files with 33 additions and 3 deletions

View File

@@ -103,10 +103,16 @@ else
auth_config=()
fi
if [[ "$KUBERNETES_PROVIDER" == "libvirt-coreos" ]]; then
host="http://${KUBE_MASTER_IP-}:8080"
else
host="https://${KUBE_MASTER_IP-}"
fi
# Use the kubectl binary from the same directory as the e2e binary.
export PATH=$(dirname "${e2e}"):"${PATH}"
"${e2e}" "${auth_config[@]:+${auth_config[@]}}" \
--host="https://${KUBE_MASTER_IP-}" \
--host="$host" \
--provider="${KUBERNETES_PROVIDER}" \
--gce_project="${PROJECT:-}" \
--gce_zone="${ZONE:-}" \