X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Faddons%2Faddons.sh;h=9f27982e2988d0efa9a9bd3b1777b10ea11e2350;hb=790dc20efb05a3113b97800926a80753e9a89e98;hp=75a8ad3f6308acab8b415bb8baba3d034678d5dc;hpb=0fe619cdb49fa5c6a70e69701655281b1fc6d8bc;p=icn.git diff --git a/deploy/addons/addons.sh b/deploy/addons/addons.sh index 75a8ad3..9f27982 100755 --- a/deploy/addons/addons.sh +++ b/deploy/addons/addons.sh @@ -10,6 +10,10 @@ source $LIBDIR/common.sh BUILDDIR=${SCRIPTDIR/deploy/build} mkdir -p ${BUILDDIR} +function install_deps { + apt-get install -y jq +} + function is_emco_ready { local -r cluster_name=${CLUSTER_NAME:-icn} local -r cluster_kubeconfig="${BUILDDIR}/${cluster_name}.conf" @@ -85,12 +89,20 @@ function is_addon_ready { } function test_addons { + install_deps + # Create a temporary kubeconfig file for the tests local -r cluster_name=${CLUSTER_NAME:-icn} local -r cluster_kubeconfig="${BUILDDIR}/${cluster_name}.conf" clusterctl -n metal3 get kubeconfig ${cluster_name} >${cluster_kubeconfig} clone_kud_repository + # The vFW test in EMCO v21.12 does not use KubeVirt, so patch the + # KuD test and continue to use it + pushd ${KUDPATH} + patch -p1 --forward <${SCRIPTDIR}/plugin_fw_v2.patch || true + popd + pushd ${KUDPATH}/kud/tests failed_kud_tests="" container_runtime=$(KUBECONFIG=${cluster_kubeconfig} kubectl get nodes -o jsonpath='{.items[].status.nodeInfo.containerRuntimeVersion}')