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

Commit f2bebe9

Browse files
author
Patrick Baxter
committed
hack/tests: don't modify known hosts file in conformance script
1 parent eb850ed commit f2bebe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/tests/conformance-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ssh_key=$3
2222

2323
KUBECONFIG=${KUBECONFIG:-/home/core/cluster/auth/kubeconfig}
2424
K8S_SRC=/home/core/go/src/k8s.io/kubernetes
25-
ssh -q -o stricthostkeychecking=no -i ${ssh_key} -p ${ssh_port} core@${ssh_host} \
25+
ssh -q -o UserKnownHostsFile=/dev/null -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}"
2727

2828
RKT_OPTS="\
@@ -45,4 +45,4 @@ CONFORMANCE="\
4545
-v --test -check_version_skew=false --test_args='--ginkgo.focus=\[Conformance\]'"
4646

4747
CMD="sudo rkt run --insecure-options=image ${RKT_OPTS} docker://golang:1.7.5 --exec /bin/bash -- -c \"${INIT} && ${BUILD} && ${CONFORMANCE}\""
48-
ssh -q -o stricthostkeychecking=no -i ${ssh_key} -p ${ssh_port} core@${ssh_host} "${CMD}"
48+
ssh -q -o UserKnownHostsFile=/dev/null -o stricthostkeychecking=no -i ${ssh_key} -p ${ssh_port} core@${ssh_host} "${CMD}"

0 commit comments

Comments
 (0)