Add detect-master to local provider to get e2e working

go run hack/e2e.go -v -test --check_node_count=false --test_args="--ginkgo.focus=\[Feature:Volumes\]"
This commit is contained in:
Angus Salkeld
2016-07-12 09:29:49 +02:00
parent eecbfb1a28
commit 71a9487f70
2 changed files with 9 additions and 2 deletions

View File

@@ -18,3 +18,10 @@ function prepare-e2e() {
echo "Local doesn't need special preparations for e2e tests" 1>&2
}
detect-master() {
KUBE_MASTER=localhost
KUBE_MASTER_IP=127.0.0.1
KUBE_MASTER_URL="http://${KUBE_MASTER_IP}:8080"
echo "Using master: $KUBE_MASTER (external IP: $KUBE_MASTER_IP)"
}