filter

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Evaluate

func Evaluate(target TargetedVpa, nodes []corev1.Node) ([]corev1.Node, error)

func NodeAffinity

func NodeAffinity(target TargetedVpa, nodes []corev1.Node) ([]corev1.Node, error)

func NodeName

func NodeName(target TargetedVpa, nodes []corev1.Node) ([]corev1.Node, error)

func Schedulable

func Schedulable(nodes []corev1.Node) []corev1.Node

func TaintToleration

func TaintToleration(target TargetedVpa, nodes []corev1.Node) ([]corev1.Node, error)

Types

type NodeFilter

type NodeFilter func(target TargetedVpa, nodes []corev1.Node) ([]corev1.Node, error)

type TargetType added in v0.4.0

type TargetType int
const (
	TargetDeployment TargetType = iota
	TargetStatefulSet
	TargetDaemonSet
)

type TargetedVpa

type TargetedVpa struct {
	Type       TargetType
	Vpa        *vpav1.VerticalPodAutoscaler
	PodSpec    corev1.PodSpec
	Selector   metav1.LabelSelector
	ObjectMeta metav1.ObjectMeta
}

Jump to

Keyboard shortcuts

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