fix(hack): use kubectl create to install KubeVirt

kubectl apply stores the full manifest in the last-applied-configuration
annotation, which exceeds the 256KiB annotation limit for the kubevirts
CRD shipped with KubeVirt v1.10.0 and fails the install.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2026-11-19 14:05:09 +01:00
co-authored by Claude Sonnet 5.5
parent 95e16a411b
commit 77a4ff6812
+2 -2
View File
@@ -209,8 +209,8 @@ configure_secondary_network() {
deploy_kubevirt() {
echo "Deploying KubeVirt"
${KUBECTL} apply -f "https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-operator.yaml"
${KUBECTL} apply -f "https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-cr.yaml"
${KUBECTL} create -f "https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-operator.yaml"
${KUBECTL} create -f "https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-cr.yaml"
if ! is_nested_virt_enabled; then
echo "Configuring Kubevirt to use emulation"