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 ¶
func (s *AdmissionServer) Serve(w http.ResponseWriter, r *http.Request)
Serve is a handler function of AdmissionServer
Click to show internal directories.
Click to hide internal directories.