prevent conformance test failure in DIND scenario

in the "ci-kubernetes-local-e2e" job, we are running local-up-cluster.sh
using DIND. We see failure for "HostPath should give a volume the
correct mode [Conformance]" test. The failure looks as follows:

linux mounts: path /tmp is mounted on / but it is not a shared or slave
mount
This commit is contained in:
Davanum Srinivas 2018-03-05 14:54:28 -05:00
parent d112ffc2eb
commit 8fe04adab2

View File

@ -954,6 +954,8 @@ if [[ "${KUBETEST_IN_DOCKER:-}" == "true" ]]; then
export PATH="${KUBE_ROOT}/third_party/etcd:${PATH}"
KUBE_FASTBUILD=true make ginkgo cross
apt install -y sudo
# configure shared mounts to prevent failure in DIND scenarios
mount --make-rshared /
fi
# validate that etcd is: not running, in path, and has minimum required version.