pod

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceHandler

func NewResourceHandler(preProcessor PreProcessor, mpaMatcher mpa.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