webhooks

package
v0.0.0-...-c2c9d29 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RKE2ConfigNameLabel = "cluster-api.cattle.io/rke2config-name"
)
View Source
const (
	SystemAgentAnnotation = "cluster-api.cattle.io/turtles-system-agent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdMachineSnapshotWebhook

type EtcdMachineSnapshotWebhook struct {
	client.Client
}

EtcdMachineSnapshotWebhook defines a webhook for EtcdMachineSnapshot.

func (*EtcdMachineSnapshotWebhook) SetupWebhookWithManager

func (r *EtcdMachineSnapshotWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up and registers the webhook with the manager.

func (*EtcdMachineSnapshotWebhook) ValidateCreate

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

func (*EtcdMachineSnapshotWebhook) ValidateDelete

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

func (*EtcdMachineSnapshotWebhook) ValidateUpdate

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

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

type EtcdSnapshotRestoreWebhook

type EtcdSnapshotRestoreWebhook struct {
	client.Client
}

EtcdSnapshotRestoreWebhook defines a webhook for EtcdSnapshotRestore.

func (*EtcdSnapshotRestoreWebhook) SetupWebhookWithManager

func (r *EtcdSnapshotRestoreWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up and registers the webhook with the manager.

func (*EtcdSnapshotRestoreWebhook) ValidateCreate

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

func (*EtcdSnapshotRestoreWebhook) ValidateDelete

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

func (*EtcdSnapshotRestoreWebhook) ValidateUpdate

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

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

type RKE2ConfigWebhook

type RKE2ConfigWebhook struct {
	client.Client
	Tracker               *remote.ClusterCacheTracker
	InsecureSkipTLSVerify bool
}

RKE2ConfigWebhook defines a webhook for RKE2Config.

func (*RKE2ConfigWebhook) AddPostInstallCommands

func (r *RKE2ConfigWebhook) AddPostInstallCommands(rke2Config *bootstrapv1.RKE2Config)

addPostInstallCommands adds the post install command to the RKE2Config.

func (*RKE2ConfigWebhook) Default

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

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

func (*RKE2ConfigWebhook) SetupWebhookWithManager

func (r *RKE2ConfigWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up and registers the webhook with the manager.

Jump to

Keyboard shortcuts

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