Skip to content

Commit

Permalink
Merge pull request #278 from kubevirt-bot/cherry-pick-276-to-release-1.2
Browse files Browse the repository at this point in the history
[release-1.2] Ensure `commonInstancetypesDeployment` is disabled, wait for resources to be deleted and stop using depreacted FGs
  • Loading branch information
kubevirt-bot authored Nov 11, 2024
2 parents 41e2ae3 + 3c0f8b5 commit b6ea271
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion scripts/kubevirt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ function kubevirt::up() {
make cluster-up -C "${_base_dir}/_kubevirt" && make cluster-sync -C "${_base_dir}/_kubevirt"

echo "enabling feature gates to validate instance types and preferences"
${_kubectl} patch kv/kubevirt -n kubevirt --type merge -p '{"spec":{"configuration":{"commonInstancetypesDeployment": {"enable": false},"developerConfiguration":{"featureGates": ["GPU", "NUMA", "VMPersistentState"]},"vmStateStorageClass":"nfs-csi"}}}'
${_kubectl} patch kv/kubevirt -n kubevirt --type merge -p '{"spec":{"configuration":{"commonInstancetypesDeployment": {"enabled": false},"developerConfiguration":{"featureGates": ["VMPersistentState"]},"vmStateStorageClass":"nfs-csi"}}}'

echo "waiting for kubevirt to become ready, this can take a few minutes..."
${_kubectl} -n kubevirt wait kv kubevirt --for condition=Available --timeout=15m
}

function kubevirt::down() {
Expand Down
5 changes: 4 additions & 1 deletion scripts/kubevirtci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ function kubevirtci::up() {
${_kubectl} -n kubevirt wait kv kubevirt --for condition=Available --timeout=15m

echo "enabling feature gates to validate instance types and preferences"
${_kubectl} patch kv/kubevirt -n kubevirt --type merge -p '{"spec":{"configuration":{"commonInstancetypesDeployment": {"enable": false},"developerConfiguration":{"featureGates": ["GPU", "NUMA", "VMPersistentState"]},"vmStateStorageClass":"nfs-csi"}}}'
${_kubectl} patch kv/kubevirt -n kubevirt --type merge -p '{"spec":{"configuration":{"commonInstancetypesDeployment": {"enabled": false},"developerConfiguration":{"featureGates": ["VMPersistentState"]},"vmStateStorageClass":"nfs-csi"}}}'

echo "waiting for kubevirt to become ready, this can take a few minutes..."
${_kubectl} -n kubevirt wait kv kubevirt --for condition=Available --timeout=15m
}

function kubevirtci::down() {
Expand Down

0 comments on commit b6ea271

Please sign in to comment.