From 51334f1842bfeab4c7920006ce41544987709e14 Mon Sep 17 00:00:00 2001 From: Byron Marohn Date: Fri, 20 Jun 2025 00:20:33 -0700 Subject: [PATCH] Fix the kubevirt-operator.yaml artifact to pull image by appropriate tag Signed-off-by: Byron Marohn --- .github/workflows/qemu-kubevirt.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/qemu-kubevirt.yaml b/.github/workflows/qemu-kubevirt.yaml index e1b5500..0a037a1 100644 --- a/.github/workflows/qemu-kubevirt.yaml +++ b/.github/workflows/qemu-kubevirt.yaml @@ -263,6 +263,11 @@ jobs: cp $EDV_HOME/workspace/kubevirt/_out/manifests/release/kubevirt-operator.yaml . cp $EDV_HOME/workspace/kubevirt/_out/manifests/release/kubevirt-cr.yaml . + # Modify the generated operator yaml to specify images by tag, rather than sha256 + cat kubevirt-operator.yaml | sed '/name: VIRT_API_SHASUM/,/name: KUBEVIRT_VERSION/ { /name: KUBEVIRT_VERSION/!d }' > kubevirt-operator.new.yaml + perl -p -i -e "s|virt-operator\@sha256.*\$|virt-operator:$EDV_VERSION|g" kubevirt-operator.new.yaml + mv -f kubevirt-operator.new.yaml kubevirt-operator.yaml + docker image pull localhost:5000/sidecar-shim:$EDV_VERSION docker image pull localhost:5000/virt-api:$EDV_VERSION docker image pull localhost:5000/virt-handler:$EDV_VERSION