Skip to content

Commit 8d09810

Browse files
committed
kind-sriov: Allow to use DRA
In order to allow using DRA driver, export KUBEVIRT_USE_DRA=true. It will skip installing the DP and CNI, DRA (and the included CNI) will need to be installed manually for now. We still create VFs, and unbind them. It suits vfio driver of DRA. Signed-off-by: Or Shoval <[email protected]>
1 parent 4fc15bb commit 8d09810

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cluster-up/cluster/kind-sriov/config_sriov_cluster.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,18 @@ node::configure_sriov_vfs "${worker_nodes[*]}" "$VFS_DRIVER" "$VFS_DRIVER_KMODUL
5959

6060
## Deploy Multus and SRIOV components
6161
sriov_components::deploy_multus
62-
sriov_components::deploy \
62+
63+
if [[ "$KUBEVIRT_USE_DRA" != "true" ]]; then
64+
sriov_components::deploy \
6365
"$PFS_IN_USE" \
6466
"$VFS_DRIVER" \
6567
"$SRIOVDP_RESOURCE_PREFIX" "$SRIOVDP_RESOURCE_NAME" \
6668
"$SRIOV_NODE_LABEL_KEY" "$SRIOV_NODE_LABEL_VALUE"
6769

68-
# Verify that each sriov capable node has sriov VFs allocatable resource
69-
validate_nodes_sriov_allocatable_resource
70+
# Verify that each sriov capable node has sriov VFs allocatable resource
71+
validate_nodes_sriov_allocatable_resource
72+
fi
73+
7074
sriov_components::wait_pods_ready
7175

7276
_kubectl get nodes

0 commit comments

Comments
 (0)