Skip to content

Commit

Permalink
fix: Update Kubevirt CR used in CI
Browse files Browse the repository at this point in the history
Enable "KubevirtSeccompProfile" feature gate,
so VM can be started on OCP 4.13.

Signed-off-by: Andrej Krejcir <[email protected]>
  • Loading branch information
akrejcir committed Mar 9, 2023
1 parent 3689c47 commit 19e5c5e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions automation/common/deploy-kubevirt-and-cdi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,28 @@ EOF
# Deploying kuebvirt
oc apply -n $NAMESPACE -f "https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-operator.yaml"

# Using KubeVirt CR from version v0.35.0
# Using KubeVirt CR from version v0.59.0
oc apply -n $NAMESPACE -f - <<EOF
apiVersion: kubevirt.io/v1alpha3
apiVersion: kubevirt.io/v1
kind: KubeVirt
metadata:
name: kubevirt
namespace: kubevirt
spec:
certificateRotateStrategy: {}
configuration:
selinuxLauncherType: "virt_launcher.process"
developerConfiguration:
featureGates:
- DataVolumes
- CPUManager
- LiveMigration
# - ExperimentalIgnitionSupport
# - Sidecar
# - Snapshot
- KubevirtSeccompProfile
seccompConfiguration:
virtualMachineInstanceProfile:
customProfile:
localhostProfile: kubevirt/kubevirt.json
customizeComponents: {}
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
EOF

echo "Waiting for Kubevirt to be ready..."
Expand Down

0 comments on commit 19e5c5e

Please sign in to comment.