Skip to content

Commit

Permalink
Require KVM for OVA conversion pod
Browse files Browse the repository at this point in the history
Signed-off-by: Arik Hadas <ahadas@redhat.com>
  • Loading branch information
ahadas committed Oct 30, 2023
1 parent 9537529 commit a55e08e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/controller/plan/kubevirt.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,11 @@ func (r *KubeVirt) createPodToBindPVCs(vm *plan.VMStatus, pvcNames []string) (er

// Sets KVM requirement to the pod and container.
func (r *KubeVirt) setKvmOnPodSpec(podSpec *core.PodSpec) {
if *r.Plan.Provider.Source.Spec.Type == v1beta1.VSphere && !Settings.VirtV2vDontRequestKVM {
if Settings.VirtV2vDontRequestKVM {
return
}
switch *r.Plan.Provider.Source.Spec.Type {
case v1beta1.VSphere, v1beta1.Ova:
if podSpec.NodeSelector == nil {
podSpec.NodeSelector = make(map[string]string)
}
Expand Down

0 comments on commit a55e08e

Please sign in to comment.