Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit de62c72

Browse files
author
Patrick Baxter
committed
hack/tests: plumb through environment variables in conformance script
1 parent 9637242 commit de62c72

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hack/tests/conformance-gce.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ BOOTKUBE_VERSION=${BOOTKUBE_VERSION:-}
3232
COREOS_CHANNEL=${COREOS_CHANNEL:-'coreos-stable'}
3333
WORKER_COUNT=4
3434
GCE_PREFIX=${GCE_PREFIX:-'bootkube-ci'}
35+
SELF_HOST_ETCD=${SELF_HOST_ETCD:-false}
3536

3637
function 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

7071
function add_workers {
@@ -111,6 +112,8 @@ else
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)"
116119
fi

0 commit comments

Comments
 (0)