vpa

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceHandler

func NewResourceHandler(preProcessor PreProcessor) resource.Handler

NewResourceHandler creates new instance of resourceHandler.

func ValidateVPA added in v0.12.0

func ValidateVPA(vpa *vpa_types.VerticalPodAutoscaler, isCreate bool) error

ValidateVPA checks the correctness of VPA Spec and returns an error if there is a problem.

Types

type Matcher

type Matcher interface {
	GetMatchingVPA(pod *core.Pod) *vpa_types.VerticalPodAutoscaler
}

Matcher is capable of returning a single matching VPA object for a pod. Will return nil if no matching object is found.

func NewMatcher

NewMatcher returns a new VPA matcher.

type PreProcessor

type PreProcessor interface {
	Process(vpa *vpa_types.VerticalPodAutoscaler, isCreate bool) (*vpa_types.VerticalPodAutoscaler, error)
}

PreProcessor processes the VPAs before applying default .

func NewDefaultPreProcessor

func NewDefaultPreProcessor() PreProcessor

NewDefaultPreProcessor creates a PreProcessor that leaves VPAs unchanged and returns no error

Jump to

Keyboard shortcuts

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