mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00
20 lines
457 B
Bash
Executable File
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
|