Documentation ¶
Index ¶
- Variables
- func CalculateResourceLauncherVMIUsagePodResources(vmi *v15.VirtualMachineInstance, isSourceOrSingleLauncher bool) corev1.ResourceList
- func GetNumberOfVCPUs(cpuSpec *v15.CPUTopology) int64
- func UnfinishedVMIPods(pods []*corev1.Pod, vmi *v15.VirtualMachineInstance) (podsToReturn []*corev1.Pod)
- type VirtLauncherCalculator
Constants ¶
This section is empty.
Variables ¶
View Source
var MyConfigs = []v1alpha1.VmiCalcConfigName{v1alpha1.VmiPodUsage, v1alpha1.VirtualResources, v1alpha1.DedicatedVirtualResources}
Functions ¶
func CalculateResourceLauncherVMIUsagePodResources ¶
func CalculateResourceLauncherVMIUsagePodResources(vmi *v15.VirtualMachineInstance, isSourceOrSingleLauncher bool) corev1.ResourceList
func GetNumberOfVCPUs ¶
func GetNumberOfVCPUs(cpuSpec *v15.CPUTopology) int64
func UnfinishedVMIPods ¶
Types ¶
type VirtLauncherCalculator ¶
type VirtLauncherCalculator struct {
// contains filtered or unexported fields
}
func NewVirtLauncherCalculator ¶
func NewVirtLauncherCalculator(vmiInformer cache.SharedIndexInformer, migrationInformer cache.SharedIndexInformer, calcConfig v1alpha1.VmiCalcConfigName) *VirtLauncherCalculator
func (*VirtLauncherCalculator) CalculateUsageByConfig ¶
func (launchercalc *VirtLauncherCalculator) CalculateUsageByConfig(pod *corev1.Pod, vmi *v15.VirtualMachineInstance, isSourceOrSingleLauncher bool) (corev1.ResourceList, error)
func (*VirtLauncherCalculator) PodUsageFunc ¶
func (launchercalc *VirtLauncherCalculator) PodUsageFunc(pod *corev1.Pod, existingPods []*corev1.Pod) (corev1.ResourceList, error, bool)
Click to show internal directories.
Click to hide internal directories.