webhooks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodNodeSelectorMutator added in v0.6.0

type PodNodeSelectorMutator struct {

	// Client is used to fetch namespace metadata
	Client client.Reader

	// DefaultNodeSelector is the default node selector to apply to pods
	DefaultNodeSelector map[string]string
	// DefaultNamespaceNodeSelectorAnnotation is the annotation to use for the default node selector
	DefaultNamespaceNodeSelectorAnnotation string

	Skipper skipper.Skipper
	// contains filtered or unexported fields
}

PodNodeSelectorMutator checks namespaces for allowed node selectors.

func (*PodNodeSelectorMutator) Handle added in v0.6.0

Handle handles the admission requests

func (*PodNodeSelectorMutator) InjectDecoder added in v0.6.0

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

InjectDecoder injects a Admission request decoder

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