Documentation ¶
Index ¶
- Constants
- type EtcdMachineSnapshotWebhook
- func (r *EtcdMachineSnapshotWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *EtcdMachineSnapshotWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *EtcdMachineSnapshotWebhook) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *EtcdMachineSnapshotWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type EtcdSnapshotRestoreWebhook
- func (r *EtcdSnapshotRestoreWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *EtcdSnapshotRestoreWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *EtcdSnapshotRestoreWebhook) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *EtcdSnapshotRestoreWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type RKE2ConfigWebhook
Constants ¶
const (
RKE2ConfigNameLabel = "cluster-api.cattle.io/rke2config-name"
)
const (
SystemAgentAnnotation = "cluster-api.cattle.io/turtles-system-agent"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdMachineSnapshotWebhook ¶
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 ¶
func (r *EtcdMachineSnapshotWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*EtcdMachineSnapshotWebhook) ValidateDelete ¶
func (r *EtcdMachineSnapshotWebhook) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
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 ¶
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 ¶
func (r *EtcdSnapshotRestoreWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*EtcdSnapshotRestoreWebhook) ValidateDelete ¶
func (r *EtcdSnapshotRestoreWebhook) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
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 ¶
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.