@@ -8,8 +8,16 @@ set -euo pipefail
88# REQUIREMENTS:
99# - gcloud cli is installed
1010# - rkt is available on the host
11- # - $BUILD_ROOT environment variable is set and contains a checkout of bootkube at $BUILD_ROOT/bootkube
12- # - $KEY_FILE environment variable is set as path to GCE service account keyfile
11+ #
12+ # 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
15+ #
16+ # OPTIONAL ENV VARS:
17+ # - $WORKER_COUNT: number of worker machines to launch. Default 4
18+ # - $BOOTKUBE_REPO: container repo to use to launch bootkube. Default to value in quickstart/init-master.sh
19+ # - $BOOTKUBE_VERSION: container version to use to launch bootkube. Default to value in quickstart/init-master.sh
20+ # - $COREOS_VERSION: CoreOS image version.
1321#
1422# PROCESS:
1523#
@@ -21,6 +29,8 @@ set -euo pipefail
2129# - Run conformance tests against the launched cluster
2230#
2331WORKER_COUNT=4
32+ BOOTKUBE_REPO=${BOOTKUBE_REPO:- }
33+ BOOTKUBE_VERSION=${BOOTKUBE_VERSION:- }
2434COREOS_IMAGE=${COREOS_IMAGE:- ' https://www.googleapis.com/compute/v1/projects/coreos-cloud/global/images/coreos-stable-1122-2-0-v20160906' }
2535
2636function cleanup {
@@ -53,7 +63,8 @@ function add_master {
5363 gcloud compute instances add-metadata bootkube-ci-m1 --zone us-central1-a --metadata-from-file ssh-keys=/root/.ssh/gce-format.pub
5464
5565 MASTER_IP=$( gcloud compute instances list bootkube-ci-m1 --format=json | jq --raw-output ' .[].networkInterfaces[].accessConfigs[].natIP' )
56- cd /build/bootkube/hack/quickstart && SSH_OPTS=" -o StrictHostKeyChecking=no" CLUSTER_DIR=/build/cluster ./init-master.sh ${MASTER_IP}
66+ cd /build/bootkube/hack/quickstart && SSH_OPTS=" -o StrictHostKeyChecking=no" \
67+ CLUSTER_DIR=/build/cluster BOOTKUBE_REPO=${BOOTKUBE_REPO} BOOTKUBE_VERSION=${BOOTKUBE_VERSION} ./init-master.sh ${MASTER_IP}
5768}
5869
5970function add_workers {
0 commit comments