@@ -10,11 +10,10 @@ set -euo pipefail
1010# - rkt is available on the host
1111#
1212# REQUIRED ENV VARS:
13- # - $BUILD_ROOT: environment variable is set and contains a checkout of bootkube at $BUILD_ROOT/bootkube
14- # - $KEY_FILE: environment variable is set as path to GCE service account keyfile
13+ # - $BUILD_ROOT: contains a checkout of bootkube at $BUILD_ROOT/bootkube
14+ # - $KEY_FILE: path to GCE service account keyfile
1515#
1616# OPTIONAL ENV VARS:
17- # - $WORKER_COUNT: number of worker machines to launch. Default 4
1817# - $BOOTKUBE_REPO: container repo to use to launch bootkube. Default to value in quickstart/init-master.sh
1918# - $BOOTKUBE_VERSION: container version to use to launch bootkube. Default to value in quickstart/init-master.sh
2019# - $COREOS_VERSION: CoreOS image version.
@@ -28,10 +27,10 @@ set -euo pipefail
2827# - Use the quickstart init-worker.sh script to join node to kubernetes cluster
2928# - Run conformance tests against the launched cluster
3029#
31- WORKER_COUNT=4
3230BOOTKUBE_REPO=${BOOTKUBE_REPO:- }
3331BOOTKUBE_VERSION=${BOOTKUBE_VERSION:- }
3432COREOS_IMAGE=${COREOS_IMAGE:- ' https://www.googleapis.com/compute/v1/projects/coreos-cloud/global/images/coreos-stable-1122-2-0-v20160906' }
33+ WORKER_COUNT=4
3534
3635function cleanup {
3736 gcloud compute instances delete --quiet --zone us-central1-a bootkube-ci-m1 || true
106105 " --mount volume=keyfile,target=/build/keyfile " \
107106 )
108107
109- sudo rkt run --insecure-options=image ${RKT_OPTS} docker://golang:1.6.3 --exec /bin/bash -- -c " IN_CONTAINER=true /build/bootkube/hack/tests/$( basename $0 ) "
108+ sudo rkt run --insecure-options=image ${RKT_OPTS} docker://golang:1.6.3 --exec /bin/bash -- -c \
109+ " IN_CONTAINER=true BOOTKUBE_REPO=${BOOTKUBE_REPO} BOOTKUBE_VERSION=${BOOTKUBE_VERSION} COREOS_IMAGE=${COREOS_IMAGE} /build/bootkube/hack/tests/$( basename $0 ) "
110110fi
0 commit comments