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

Commit f3f348e

Browse files
committed
gce conformance tweaks to respect config
1 parent 19800a5 commit f3f348e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

hack/quickstart/init-master.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ if [ "${REMOTE_HOST}" != "local" ]; then
111111

112112
# Copy self to remote host so script can be executed in "local" mode
113113
scp -i ${IDENT} -P ${REMOTE_PORT} ${SSH_OPTS} ${BASH_SOURCE[0]} core@${REMOTE_HOST}:/home/core/init-master.sh
114-
ssh -i ${IDENT} -p ${REMOTE_PORT} ${SSH_OPTS} core@${REMOTE_HOST} "sudo /home/core/init-master.sh local"
114+
ssh -i ${IDENT} -p ${REMOTE_PORT} ${SSH_OPTS} core@${REMOTE_HOST} "sudo BOOTKUBE_REPO=${BOOTKUBE_REPO} BOOTKUBE_VERSION=${BOOTKUBE_VERSION} /home/core/init-master.sh local"
115115

116116
# Copy assets from remote host to a local directory. These can be used to launch additional nodes & contain TLS assets
117117
mkdir ${CLUSTER_DIR}

hack/tests/conformance-gce.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
3230
BOOTKUBE_REPO=${BOOTKUBE_REPO:-}
3331
BOOTKUBE_VERSION=${BOOTKUBE_VERSION:-}
3432
COREOS_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

3635
function cleanup {
3736
gcloud compute instances delete --quiet --zone us-central1-a bootkube-ci-m1 || true
@@ -106,5 +105,6 @@ else
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)"
110110
fi

0 commit comments

Comments
 (0)