containerized-data-importer/cluster-up/up.sh
Alexander Wels 7c7cbdc78e
update kubevirtci to latest. (#1113)
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-02-18 14:42:48 +01:00

20 lines
457 B
Bash
Executable File

#!/usr/bin/env bash
if [ -z "$KUBEVIRTCI_PATH" ]; then
KUBEVIRTCI_PATH="$(
cd "$(dirname "$BASH_SOURCE[0]")/"
echo "$(pwd)/"
)"
fi
source ${KUBEVIRTCI_PATH}hack/common.sh
source ${KUBEVIRTCI_CLUSTER_PATH}/$KUBEVIRT_PROVIDER/provider.sh
up
# check if the environment has a corrupted host
if [[ $(${KUBEVIRTCI_PATH}kubectl.sh get nodes | grep localhost) != "" ]]; then
echo "The environment has a corrupted host"
exit 1
fi