Skip to content

Commit

Permalink
change preference hardcoded to api const
Browse files Browse the repository at this point in the history
Signed-off-by: Liran Rotenberg <[email protected]>
  • Loading branch information
liranr23 authored and ahadas committed Jul 1, 2024
1 parent 6399338 commit a8aeb93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/plan/kubevirt.go
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ func (r *KubeVirt) getVirtualMachinePreference(preferenceName string) (name, kin
if err != nil {
return
}
return preferenceName, "VirtualMachinePreference", nil
return preferenceName, instancetypeapi.SingularPreferenceResourceName, nil
}

func (r *KubeVirt) getVirtualMachineClusterPreference(vm *plan.VMStatus, preferenceName string) (name, kind string, err error) {
Expand All @@ -1441,7 +1441,7 @@ func (r *KubeVirt) getVirtualMachineClusterPreference(vm *plan.VMStatus, prefere
}
return
}
return preferenceName, "VirtualMachineClusterPreference", nil
return preferenceName, instancetypeapi.ClusterSingularPreferenceResourceName, nil
}

// Attempt to find a suitable template and extract a VirtualMachine definition from it.
Expand Down

0 comments on commit a8aeb93

Please sign in to comment.