v1alpha1

package
v1.3.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateYurtAppSetUpdate

func ValidateYurtAppSetUpdate(yurtAppSet, oldYurtAppSet *unitv1alpha1.YurtAppSet) field.ErrorList

ValidateYurtAppSetUpdate tests if required fields in the YurtAppSet are set.

Types

type YurtAppSetHandler

type YurtAppSetHandler struct {
	Client client.Client
}

Cluster implements a validating and defaulting webhook for Cluster.

func (*YurtAppSetHandler) Default

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

Default satisfies the defaulting webhook interface.

func (*YurtAppSetHandler) SetupWebhookWithManager

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

SetupWebhookWithManager sets up Cluster webhooks.

func (*YurtAppSetHandler) ValidateCreate

func (webhook *YurtAppSetHandler) ValidateCreate(ctx context.Context, obj runtime.Object) error

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

func (*YurtAppSetHandler) ValidateDelete

func (webhook *YurtAppSetHandler) ValidateDelete(_ context.Context, obj runtime.Object) error

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

func (*YurtAppSetHandler) ValidateUpdate

func (webhook *YurtAppSetHandler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) 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