Adapt automation for CNAO lane
There is a new provider k8s-cnao-1.17 that has the latest
CNAO with latest k8s (multus provider is very old and difficult to update).
Here we run multus related test if TARGET is cnao.
@@ -35,8 +35,11 @@ readonly BAZEL_CACHE="${BAZEL_CACHE:-http://bazel-cache.kubevirt-prow.svc.cluste
if [[ $TARGET =~ windows.* ]]; then
echo "picking the default provider for windows tests"
+elif [[ $TARGET =~ cnao ]]; then
+ export KUBEVIRT_WITH_CNAO=true
+ export KUBEVIRT_PROVIDER=${TARGET/-cnao/}
else
- export KUBEVIRT_PROVIDER=$TARGET
+ export KUBEVIRT_PROVIDER=${TARGET}
fi
if [ ! -d "cluster-up/cluster/$KUBEVIRT_PROVIDER" ]; then
@@ -269,7 +272,7 @@ spec:
EOF
# Run only Windows tests
ginko_params="$ginko_params --ginkgo.focus=Windows"
-elif [[ $TARGET =~ multus.* ]]; then
+elif [[ $TARGET =~ cnao ]]; then
ginko_params="$ginko_params --ginkgo.focus=Multus|Networking|VMIlifecycle|Expose"
elif [[ $TARGET =~ genie.* ]]; then
ginko_params="$ginko_params --ginkgo.focus=Genie|Networking|VMIlifecycle|Expose"
