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

Documentation

Overview

Package webhooks provides the validating webhooks for KubeadmConfig and KubeadmConfigTemplate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeadmConfig

type KubeadmConfig struct{}

KubeadmConfig implements a validation and defaulting webhook for KubeadmConfig.

func (*KubeadmConfig) Default

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

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

func (*KubeadmConfig) SetupWebhookWithManager

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

func (*KubeadmConfig) ValidateCreate

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

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

func (*KubeadmConfig) ValidateDelete

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

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

func (*KubeadmConfig) ValidateUpdate

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

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

type KubeadmConfigTemplate

type KubeadmConfigTemplate struct{}

KubeadmConfigTemplate implements a validation and defaulting webhook for KubeadmConfigTemplate.

func (*KubeadmConfigTemplate) Default

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

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

func (*KubeadmConfigTemplate) SetupWebhookWithManager

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

func (*KubeadmConfigTemplate) ValidateCreate

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

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

func (*KubeadmConfigTemplate) ValidateDelete

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

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

func (*KubeadmConfigTemplate) ValidateUpdate

func (webhook *KubeadmConfigTemplate) ValidateUpdate(_ context.Context, _, 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