v1alpha1

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YurtAppDaemonKind = "YurtAppDaemon"
)

Variables

This section is empty.

Functions

func ValidateYurtAppDaemonUpdate

func ValidateYurtAppDaemonUpdate(yad, oldYad *v1alpha1.YurtAppDaemon) field.ErrorList

ValidateYurtAppDaemonUpdate tests if required fields in the YurtAppDaemon are set.

Types

type YurtAppDaemonHandler

type YurtAppDaemonHandler struct {
	Client client.Client
}

YurtAppDaemonHandler Cluster implements a validating and defaulting webhook for Cluster.

func (*YurtAppDaemonHandler) Default

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

Default satisfies the defaulting webhook interface.

func (*YurtAppDaemonHandler) SetupWebhookWithManager

func (webhook *YurtAppDaemonHandler) SetupWebhookWithManager(mgr ctrl.Manager) (string, string, error)

SetupWebhookWithManager sets up Cluster webhooks.

func (*YurtAppDaemonHandler) ValidateCreate

func (webhook *YurtAppDaemonHandler) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*YurtAppDaemonHandler) ValidateDelete

func (webhook *YurtAppDaemonHandler) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*YurtAppDaemonHandler) ValidateUpdate

func (webhook *YurtAppDaemonHandler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator 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