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 ¶
func NewMatcher(vpaLister vpa_lister.VerticalPodAutoscalerLister, selectorFetcher target.VpaTargetSelectorFetcher) Matcher
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
Click to show internal directories.
Click to hide internal directories.