logic

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmissionServer

type AdmissionServer struct {
	// contains filtered or unexported fields
}

AdmissionServer is an admission webhook server that modifies pod resources request based on VPA recommendation

func NewAdmissionServer

func NewAdmissionServer(podPreProcessor pod.PreProcessor,
	vpaPreProcessor vpa.PreProcessor,
	limitsChecker limitrange.LimitRangeCalculator,
	vpaMatcher vpa.Matcher,
	patchCalculators []patch.Calculator) *AdmissionServer

NewAdmissionServer constructs new AdmissionServer

func (*AdmissionServer) RegisterResourceHandler

func (s *AdmissionServer) RegisterResourceHandler(resourceHandler resource.Handler)

RegisterResourceHandler allows to register a custom logic for handling given types of resources.

func (*AdmissionServer) Serve

Serve is a handler function of AdmissionServer

Jump to

Keyboard shortcuts

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