This repository was archived by the owner on Jul 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ BOOTKUBE_VERSION=${BOOTKUBE_VERSION:-}
3232COREOS_CHANNEL=${COREOS_CHANNEL:- ' coreos-stable' }
3333WORKER_COUNT=4
3434GCE_PREFIX=${GCE_PREFIX:- ' bootkube-ci' }
35+ SELF_HOST_ETCD=${SELF_HOST_ETCD:- false}
3536
3637function cleanup {
3738 gcloud compute instances delete --quiet --zone us-central1-a ${GCE_PREFIX} -m1 || true
@@ -64,7 +65,7 @@ function add_master {
6465
6566 MASTER_IP=$( gcloud compute instances list ${GCE_PREFIX} -m1 --format=json | jq --raw-output ' .[].networkInterfaces[].accessConfigs[].natIP' )
6667 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}
68+ CLUSTER_DIR=/build/cluster BOOTKUBE_REPO=${BOOTKUBE_REPO} BOOTKUBE_VERSION=${BOOTKUBE_VERSION} SELF_HOST_ETCD= ${SELF_HOST_ETCD} ./init-master.sh ${MASTER_IP}
6869}
6970
7071function add_workers {
111112 " --mount volume=keyfile,target=/build/keyfile " \
112113 )
113114
115+ # TODO(pb): See if there is a way to make the --inherit-env option replace
116+ # passing all the variables manually.
114117 sudo rkt run --insecure-options=image ${RKT_OPTS} docker://golang:1.7.4 --exec /bin/bash -- -c \
115- " IN_CONTAINER=true BOOTKUBE_REPO=${BOOTKUBE_REPO} BOOTKUBE_VERSION=${BOOTKUBE_VERSION} COREOS_CHANNEL=${COREOS_CHANNEL} /build/bootkube/hack/tests/$( basename $0 ) "
118+ " IN_CONTAINER=true BOOTKUBE_REPO=${BOOTKUBE_REPO} BOOTKUBE_VERSION=${BOOTKUBE_VERSION} COREOS_CHANNEL=${COREOS_CHANNEL} GCE_PREFIX= ${GCE_PREFIX} SELF_HOST_ETCD= ${SELF_HOST_ETCD} /build/bootkube/hack/tests/$( basename $0 ) "
116119fi
You can’t perform that action at this time.
0 commit comments