Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Add ENABLE_DATAVOLUMES to deploy-kubevirt #40

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions ci/deploy-kubevirt
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,28 @@ set -e

source $(dirname $(realpath $0))/defaults

_enable_software_emulation() {
_create_kubevirt_config() {
if [[ -n "$ENABLE_DATAVOLUMES" ]];
then
kubectl create configmap -n kubevirt kubevirt-config --from-literal debug.useEmulation=true --from-literal feature-gates=DataVolumes || :
else
kubectl create configmap -n kubevirt kubevirt-config --from-literal debug.useEmulation=true || :
fi
}



_kubernetes() {
local VER=$1

if [[ -n "$USE_OPERATOR" ]];
then
kubectl apply -f https://github.com/kubevirt/kubevirt/releases/download/$VER/kubevirt-operator.yaml ;
_enable_software_emulation
_create_kubevirt_config
kubectl apply -f https://github.com/kubevirt/kubevirt/releases/download/$VER/kubevirt-cr.yaml ;
else
kubectl apply -f https://github.com/kubevirt/kubevirt/releases/download/$VER/kubevirt.yaml ;
_enable_software_emulation
_create_kubevirt_config
fi
}

Expand Down