webhooks

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAdmissionRequest

func DecodeAdmissionRequest(r *http.Request, decoder runtime.Decoder, into *admissionv1beta1.AdmissionReview, limit int64, logger logrus.FieldLogger) error

DecodeAdmissionRequest decodes the given http request into an admission request. An error is returned if the request exceeds the given limit.

func NewValidateKubeconfigSecretsHandler

func NewValidateKubeconfigSecretsHandler() http.HandlerFunc

NewValidateKubeconfigSecretsHandler creates a new handler for validating namespace deletions.

func NewValidateNamespaceDeletionHandler

func NewValidateNamespaceDeletionHandler(ctx context.Context, k8sGardenClient kubernetes.Interface) (http.HandlerFunc, error)

NewValidateNamespaceDeletionHandler creates a new handler for validating namespace deletions.

func NewValidateResourceSizeHandler

func NewValidateResourceSizeHandler(config *apisconfig.ResourceAdmissionConfiguration) http.HandlerFunc

NewValidateResourceSizeHandler creates a new handler for validating the resource size of a request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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