Skip to content

Commit

Permalink
DNM: Use updated kubevirt
Browse files Browse the repository at this point in the history
Signed-off-by: Or Shoval <oshoval@redhat.com>
  • Loading branch information
oshoval committed Oct 10, 2024
1 parent 644868c commit 181de36
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions contrib/kind-common
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,19 @@ install_kubevirt() {
done

if [ "$(kubectl get kubevirts -n kubevirt kubevirt -ojsonpath='{.status.phase}')" != "Deployed" ]; then
KUBEVIRT_VERSION=20241010
local kubevirt_release_url=$(get_kubevirt_release_url "$KUBEVIRT_VERSION")
echo "Deploying Kubevirt from $kubevirt_release_url"
kubectl apply -f "${kubevirt_release_url}/kubevirt-operator.yaml"
kubectl apply -f "${kubevirt_release_url}/kubevirt-cr.yaml"

curl -LO "$kubevirt_release_url/kubevirt-operator.yaml"
curl -LO "$kubevirt_release_url/kubevirt-cr.yaml"

DIGEST=sha256:6260ccfb6acee0e55f5a67ed2c6672699052358c5fd938cef234ab7a5944716e
sed -i "s|quay.io/kubevirt/virt-operator:[^ ]*|quay.io/oshoval/virt-operator@${DIGEST}|g" kubevirt-operator.yaml

kubectl apply -f "kubevirt-operator.yaml"
kubectl apply -f "kubevirt-cr.yaml"

if ! is_nested_virt_enabled; then
kubectl -n kubevirt patch kubevirt kubevirt --type=merge --patch '{"spec":{"configuration":{"developerConfiguration":{"useEmulation":true}}}}'
fi
Expand Down

0 comments on commit 181de36

Please sign in to comment.