hooks

package
v0.0.0-...-56b817c Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeploymentValidator

func NewDeploymentValidator() http.Handler

NewDeploymentValidator creates a webhook handler for Deployment.

func SetupNamespaceWebhookWithManager

func SetupNamespaceWebhookWithManager(mgr ctrl.Manager) error

func SetupPodWebhookWithManager

func SetupPodWebhookWithManager(mgr ctrl.Manager) error

Types

type NamespaceValidator

type NamespaceValidator struct{}

func (*NamespaceValidator) ValidateCreate

func (v *NamespaceValidator) ValidateCreate(ctx context.Context, obj runtime.Object) error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*NamespaceValidator) ValidateDelete

func (*NamespaceValidator) ValidateDelete(ctx context.Context, obj runtime.Object) error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*NamespaceValidator) ValidateUpdate

func (v *NamespaceValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type PodDefaulter

type PodDefaulter struct{}

func (*PodDefaulter) Default

func (*PodDefaulter) Default(ctx context.Context, obj runtime.Object) error

Default implements webhook.Defaulter so a webhook will be registered for the type

Jump to

Keyboard shortcuts

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