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

Commit e5a98fe

Browse files
author
Patrick Baxter
authored
Merge pull request #309 from pbx0/bootstrap-conformance-fix
hack/tests: update conformance scripts for tls-bootstraping
2 parents 2b1b768 + fc6692a commit e5a98fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hack/tests/conformance-gce.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function add_workers {
8181
sleep 30 # TODO(aaron) Have seen "Too many authentication failures" in CI jobs. This seems to help, but should dig into why
8282
echo "Getting worker public IP"
8383
local WORKER_IP=$(gcloud compute instances list ${GCE_PREFIX}-w${i} --format=json | jq --raw-output '.[].networkInterfaces[].accessConfigs[].natIP')
84-
cd /build/bootkube/hack/quickstart && SSH_OPTS="-o StrictHostKeyChecking=no" ./init-worker.sh ${WORKER_IP} /build/cluster/auth/kubeconfig
84+
cd /build/bootkube/hack/quickstart && SSH_OPTS="-o StrictHostKeyChecking=no" CLUSTER_DIR=/build/cluster ./init-worker.sh ${WORKER_IP}
8585
done
8686
}
8787

@@ -92,7 +92,7 @@ if [ "${IN_CONTAINER}" == true ]; then
9292
init
9393
add_master
9494
add_workers
95-
KUBECONFIG=/etc/kubernetes/kubeconfig WORKER_COUNT=${WORKER_COUNT} /build/bootkube/hack/tests/conformance-test.sh ${MASTER_IP} 22 /root/.ssh/id_rsa
95+
KUBECONFIG=/etc/kubernetes/admin-kubeconfig WORKER_COUNT=${WORKER_COUNT} /build/bootkube/hack/tests/conformance-test.sh ${MASTER_IP} 22 /root/.ssh/id_rsa
9696
else
9797
BUILD_ROOT=${BUILD_ROOT:-}
9898
if [ -z "$BUILD_ROOT" ]; then

hack/tests/conformance-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ssh_host=$1
2020
ssh_port=$2
2121
ssh_key=$3
2222

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

0 commit comments

Comments
 (0)