diff --git a/pkg/controller/plan/adapter/openstack/builder.go b/pkg/controller/plan/adapter/openstack/builder.go index fc703c332..f2cdfa5fe 100644 --- a/pkg/controller/plan/adapter/openstack/builder.go +++ b/pkg/controller/plan/adapter/openstack/builder.go @@ -440,11 +440,7 @@ func (r *Builder) mapResources(vm *model.Workload, object *cnv.VirtualMachineSpe // TODO Support HugePages memory := resource.NewQuantity(int64(vm.Flavor.RAM)*1024*1024, resource.BinarySI) - resourceRequests := map[core.ResourceName]resource.Quantity{} - resourceRequests[core.ResourceMemory] = *memory object.Template.Spec.Domain.Memory = &cnv.Memory{Guest: memory} - - object.Template.Spec.Domain.Resources.Requests = resourceRequests } func (r *Builder) getCpuCount(vm *model.Workload, imageCpuProperty string) (count uint32) { diff --git a/pkg/controller/plan/adapter/ova/builder.go b/pkg/controller/plan/adapter/ova/builder.go index db442ffd2..be007eedd 100644 --- a/pkg/controller/plan/adapter/ova/builder.go +++ b/pkg/controller/plan/adapter/ova/builder.go @@ -316,11 +316,6 @@ func (r *Builder) mapMemory(vm *model.VM, object *cnv.VirtualMachineSpec) error return err } reservation := resource.NewQuantity(memoryBytes, resource.BinarySI) - object.Template.Spec.Domain.Resources = cnv.ResourceRequirements{ - Requests: map[core.ResourceName]resource.Quantity{ - core.ResourceMemory: *reservation, - }, - } object.Template.Spec.Domain.Memory = &cnv.Memory{Guest: reservation} return nil } diff --git a/pkg/controller/plan/adapter/ovirt/builder.go b/pkg/controller/plan/adapter/ovirt/builder.go index 60390998d..01401d79e 100644 --- a/pkg/controller/plan/adapter/ovirt/builder.go +++ b/pkg/controller/plan/adapter/ovirt/builder.go @@ -362,11 +362,6 @@ func (r *Builder) mapClock(vm *model.Workload, object *cnv.VirtualMachineSpec) { func (r *Builder) mapMemory(vm *model.Workload, object *cnv.VirtualMachineSpec) { reservation := resource.NewQuantity(vm.Memory, resource.BinarySI) - object.Template.Spec.Domain.Resources = cnv.ResourceRequirements{ - Requests: map[core.ResourceName]resource.Quantity{ - core.ResourceMemory: *reservation, - }, - } object.Template.Spec.Domain.Memory = &cnv.Memory{Guest: reservation} } diff --git a/pkg/controller/plan/adapter/vsphere/builder.go b/pkg/controller/plan/adapter/vsphere/builder.go index c68e7f18a..cf1939631 100644 --- a/pkg/controller/plan/adapter/vsphere/builder.go +++ b/pkg/controller/plan/adapter/vsphere/builder.go @@ -647,11 +647,6 @@ func (r *Builder) setMachine(object *cnv.VirtualMachineSpec) { func (r *Builder) mapMemory(vm *model.VM, object *cnv.VirtualMachineSpec) { memoryBytes := int64(vm.MemoryMB) * 1024 * 1024 reservation := resource.NewQuantity(memoryBytes, resource.BinarySI) - object.Template.Spec.Domain.Resources = cnv.ResourceRequirements{ - Requests: map[core.ResourceName]resource.Quantity{ - core.ResourceMemory: *reservation, - }, - } object.Template.Spec.Domain.Memory = &cnv.Memory{Guest: reservation} }