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

Commit b94c592

Browse files
committed
Allow conformance test to override bootkube version
1 parent 683273d commit b94c592

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

hack/quickstart/init-master.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ CLUSTER_DIR=${CLUSTER_DIR:-cluster}
77
IDENT=${IDENT:-${HOME}/.ssh/id_rsa}
88
SSH_OPTS=${SSH_OPTS:-}
99

10-
BOOTKUBE_REPO=quay.io/coreos/bootkube
11-
BOOTKUBE_VERSION=v0.2.4
10+
BOOTKUBE_REPO=${BOOTKUBE_REPO:-quay.io/coreos/bootkube}
11+
BOOTKUBE_VERSION=${BOOTKUBE_VERSION:-v0.2.4}
1212

1313
function usage() {
1414
echo "USAGE:"

hack/tests/conformance-gce.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
#
2331
WORKER_COUNT=4
32+
BOOTKUBE_REPO=${BOOTKUBE_REPO:-}
33+
BOOTKUBE_VERSION=${BOOTKUBE_VERSION:-}
2434
COREOS_IMAGE=${COREOS_IMAGE:-'https://www.googleapis.com/compute/v1/projects/coreos-cloud/global/images/coreos-stable-1122-2-0-v20160906'}
2535

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

5970
function add_workers {

0 commit comments

Comments
 (0)