pod

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: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceHandler

func NewResourceHandler(preProcessor PreProcessor, vpaMatcher vpa.Matcher, patchCalculators []patch.Calculator) resource_admission.Handler

NewResourceHandler creates new instance of resourceHandler.

Types

type NoopPreProcessor

type NoopPreProcessor struct{}

NoopPreProcessor leaves pods unchanged when processing

func (*NoopPreProcessor) Process

func (p *NoopPreProcessor) Process(pod apiv1.Pod) (apiv1.Pod, error)

Process leaves the pod unchanged

type PreProcessor

type PreProcessor interface {
	Process(apiv1.Pod) (apiv1.Pod, error)
}

PreProcessor processes the pods before building patches.

func NewDefaultPreProcessor

func NewDefaultPreProcessor() PreProcessor

NewDefaultPreProcessor creates a default PreProcessor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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