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

Commit

Permalink
Merge pull request #309 from pbx0/bootstrap-conformance-fix
Browse files Browse the repository at this point in the history
hack/tests: update conformance scripts for tls-bootstraping
  • Loading branch information
Patrick Baxter authored Feb 17, 2017
2 parents 2b1b768 + fc6692a commit e5a98fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hack/tests/conformance-gce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function add_workers {
sleep 30 # TODO(aaron) Have seen "Too many authentication failures" in CI jobs. This seems to help, but should dig into why
echo "Getting worker public IP"
local WORKER_IP=$(gcloud compute instances list ${GCE_PREFIX}-w${i} --format=json | jq --raw-output '.[].networkInterfaces[].accessConfigs[].natIP')
cd /build/bootkube/hack/quickstart && SSH_OPTS="-o StrictHostKeyChecking=no" ./init-worker.sh ${WORKER_IP} /build/cluster/auth/kubeconfig
cd /build/bootkube/hack/quickstart && SSH_OPTS="-o StrictHostKeyChecking=no" CLUSTER_DIR=/build/cluster ./init-worker.sh ${WORKER_IP}
done
}

Expand All @@ -92,7 +92,7 @@ if [ "${IN_CONTAINER}" == true ]; then
init
add_master
add_workers
KUBECONFIG=/etc/kubernetes/kubeconfig WORKER_COUNT=${WORKER_COUNT} /build/bootkube/hack/tests/conformance-test.sh ${MASTER_IP} 22 /root/.ssh/id_rsa
KUBECONFIG=/etc/kubernetes/admin-kubeconfig WORKER_COUNT=${WORKER_COUNT} /build/bootkube/hack/tests/conformance-test.sh ${MASTER_IP} 22 /root/.ssh/id_rsa
else
BUILD_ROOT=${BUILD_ROOT:-}
if [ -z "$BUILD_ROOT" ]; then
Expand Down
2 changes: 1 addition & 1 deletion hack/tests/conformance-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ssh_host=$1
ssh_port=$2
ssh_key=$3

KUBECONFIG=${KUBECONFIG:-/home/core/cluster/auth/kubeconfig}
KUBECONFIG=${KUBECONFIG:-/home/core/cluster/auth/admin-kubeconfig}
K8S_SRC=/home/core/go/src/k8s.io/kubernetes
ssh -q -o stricthostkeychecking=no -i ${ssh_key} -p ${ssh_port} core@${ssh_host} \
"mkdir -p ${K8S_SRC} && [[ -d ${K8S_SRC}/.git ]] || git clone https://${CONFORMANCE_REPO} ${K8S_SRC}"
Expand Down

0 comments on commit e5a98fe

Please sign in to comment.