mapper

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMapper

type IMapper interface {
	MapPodToWeightedPod(pod *corev1.Pod) (ultron.WeightedPod, error)
	MapNodeToWeightedNode(node *corev1.Node) (ultron.WeightedNode, error)
}

type Mapper

type Mapper struct{}

func NewMapper added in v0.0.7

func NewMapper() *Mapper

func (*Mapper) GetAnnotationOrDefault added in v0.0.7

func (m *Mapper) GetAnnotationOrDefault(annotations map[string]string, key, defaultValue string) string

func (*Mapper) GetFloatAnnotationOrDefault added in v0.0.7

func (m *Mapper) GetFloatAnnotationOrDefault(annotations map[string]string, key string, defaultValue float64) float64

func (*Mapper) GetPriorityFromAnnotation added in v0.0.7

func (m *Mapper) GetPriorityFromAnnotation(annotations map[string]string) ultron.WorkloadPriorityEnum

func (*Mapper) MapNodeToWeightedNode

func (m *Mapper) MapNodeToWeightedNode(node *corev1.Node) (ultron.WeightedNode, error)

func (*Mapper) MapPodToWeightedPod

func (m *Mapper) MapPodToWeightedPod(pod *corev1.Pod) (ultron.WeightedPod, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL