sed -i -e 's/testing_enabled=${KUD_ENABLE_TESTS:-false}/testing_enabled=${KUD_ENABLE_TESTS:-true}/g' installer.sh
fi
./installer.sh | tee kud_deploy.log
+
+ if [ "$1" == "bm" ]; then
+ pushd $DOWNLOAD_PATH/multicloud-k8s/kud/tests/
+ sleep 15
+ bash sriov.sh
+ popd
+ fi
+ popd
+}
+
+function kud_reset {
+ pushd $DOWNLOAD_PATH/multicloud-k8s/kud/hosting_providers/vagrant/
+ ansible-playbook -i inventory/hosts.ini /opt/kubespray-2.10.4/reset.yml \
+ --become --become-user=root -e reset_confirmation=yes
popd
}
+
function verifier {
APISERVER=$(kubectl config view --minify -o \
jsonpath='{.clusters[0].cluster.server}')
call_api $APISERVER/api --header "Authorization: Bearer $TOKEN" --insecure
}
+if [ "$1" == "reset" ] ; then
+ kud_reset
+ exit 0
+fi
+
get_kud_repo
set_ssh_key
set_bm_kud $1