webhooks

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package webhooks contains external webhook implementations for some of our API types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MachinePool

type MachinePool struct{}

MachinePool implements a validation and defaulting webhook for MachinePool.

func (*MachinePool) Default

func (webhook *MachinePool) Default(_ context.Context, obj runtime.Object) error

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

func (*MachinePool) SetupWebhookWithManager

func (webhook *MachinePool) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MachinePool) ValidateCreate

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

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

func (*MachinePool) ValidateDelete

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

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

func (*MachinePool) ValidateUpdate

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

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