Skip to content

Commit

Permalink
Enable Seccomp configuration
Browse files Browse the repository at this point in the history
Kubevirt needs to run under custom profile or
compliant runtime default in order to run
without issues on PSA enabled clusters.

Signed-off-by: L. Pivarc <[email protected]>
  • Loading branch information
xpivarc committed Feb 15, 2023
1 parent e037eb1 commit 9295354
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cluster-provision/k8s/check-cluster-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ export KUBEVIRTCI_GOCLI_CONTAINER=quay.io/kubevirtci/gocli:latest

${ksh} wait -n kubevirt kv kubevirt --for condition=Available --timeout 15m

if [ "${KUBEVIRT_PSA:-"false"}" == "true" ]; then
# Enable Kubevirt profile
${ksh} patch -n kubevirt kv kubevirt --patch '{"spec": {"configuration": {"developerConfiguration": {"featureGates": ["KubevirtSeccompProfile"]} } }}'
${ksh} patch -n kubevirt kv kubevirt --patch '{"spec": {"configuration": {"seccompConfiguration": {"virtualMachineInstanceProfile": {"customProfile": {"localhostProfile" : "kubevirt/kubevirt.json"} } } } } }'
fi

export SONOBUOY_EXTRA_ARGS="--plugin https://storage.googleapis.com/kubevirt-prow/devel/nightly/release/kubevirt/kubevirt/${LATEST}/conformance.yaml"
hack/conformance.sh $conformance_config
fi
Expand Down

0 comments on commit 9295354

Please sign in to comment.