webhooks

package
v0.5.0-dev Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const OpenshiftNodeSelectorAnnotation = "openshift.io/node-selector"

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceNodeSelectorValidator added in v0.5.0

type NamespaceNodeSelectorValidator struct {
	Skipper              skipper.Skipper
	AllowedNodeSelectors *validate.AllowedLabels

	// DenyEmptyNodeSelector denies namespaces with an existing but empty node selector.
	DenyEmptyNodeSelector bool
	// contains filtered or unexported fields
}

NamespaceNodeSelectorValidator checks namespaces for allowed node selectors.

func (*NamespaceNodeSelectorValidator) Handle added in v0.5.0

Handle handles the admission requests

func (*NamespaceNodeSelectorValidator) InjectDecoder added in v0.5.0

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

type WorkloadNodeSelectorValidator added in v0.5.0

type WorkloadNodeSelectorValidator struct {
	Skipper              skipper.Skipper
	AllowedNodeSelectors *validate.AllowedLabels
	// contains filtered or unexported fields
}

WorkloadNodeSelectorValidator checks workloads for allowed node selectors.

func (*WorkloadNodeSelectorValidator) Handle added in v0.5.0

Handle handles the admission requests

func (*WorkloadNodeSelectorValidator) InjectDecoder added in v0.5.0

InjectDecoder injects a Admission request decoder

Jump to

Keyboard shortcuts

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