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: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YurtStaticSetKind = "YurtStaticSet"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type YurtStaticSetHandler

type YurtStaticSetHandler struct {
}

Cluster implements a validating and defaulting webhook for Cluster.

func (*YurtStaticSetHandler) Default

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

Default satisfies the defaulting webhook interface.

func (*YurtStaticSetHandler) SetupWebhookWithManager

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

SetupWebhookWithManager sets up Cluster webhooks. mutate path, validatepath, error

func (*YurtStaticSetHandler) ValidateCreate

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

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

func (*YurtStaticSetHandler) ValidateDelete

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

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

func (*YurtStaticSetHandler) ValidateUpdate

func (webhook *YurtStaticSetHandler) 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