only add --container-runtime if it is set

pull/10178/head
Priya Wadhwa 2021-01-19 17:22:49 -08:00
parent ebd936c3c2
commit 44ce2ec6e3
2 changed files with 2 additions and 3 deletions

View File

@ -301,7 +301,7 @@ if test -f "${TEST_OUT}"; then
fi
touch "${TEST_OUT}"
if [ -z "${CONTAINER_RUNTIME}" ]
if [ ! -z "${CONTAINER_RUNTIME}" ]
then
EXTRA_START_ARGS="${EXTRA_START_ARGS} --container-runtime=${CONTAINER_RUNTIME}"
fi

View File

@ -28,12 +28,11 @@ set -e
OS_ARCH="linux-amd64"
VM_DRIVER="podman"
JOB_NAME="Experimental_Podman_Linux"
CONTAINER_RUNTIME="containerd"
mkdir -p cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron || echo "FAILED TO GET CRON FILES"
sudo install cron/cleanup_and_reboot_Linux.sh /etc/cron.hourly/cleanup_and_reboot || echo "FAILED TO INSTALL CLEANUP"
EXTRA_START_ARGS="--container-runtime=containerd"
# remove possible left over podman containers
sudo podman rm -f -v $(sudo podman ps -aq) || true