webhooks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RatioValidator

type RatioValidator struct {
	Ratio      ratioFetcher
	RatioLimit *resource.Quantity
	// contains filtered or unexported fields
}

RatioValidator checks for every action in a namespace whether the Memory to CPU ratio limit is exceeded and will return a warning if it is.

func (*RatioValidator) Handle

Handle handles the admission requests

func (*RatioValidator) InjectDecoder

func (v *RatioValidator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects a Admission request decoder

Jump to

Keyboard shortcuts

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