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

Documentation

Overview

Package webhooks provides the validating webhook for KubeadmControlPlane scale subresource.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeadmControlPlane added in v1.6.0

type KubeadmControlPlane struct{}

KubeadmControlPlane implements a validation and defaulting webhook for KubeadmControlPlane.

func (*KubeadmControlPlane) Default added in v1.6.0

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

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

func (*KubeadmControlPlane) SetupWebhookWithManager added in v1.6.0

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

func (*KubeadmControlPlane) ValidateCreate added in v1.6.0

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

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

func (*KubeadmControlPlane) ValidateDelete added in v1.6.0

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

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

func (*KubeadmControlPlane) ValidateUpdate added in v1.6.0

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

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

type KubeadmControlPlaneTemplate added in v1.6.0

type KubeadmControlPlaneTemplate struct{}

KubeadmControlPlaneTemplate implements a validation and defaulting webhook for KubeadmControlPlaneTemplate.

func (*KubeadmControlPlaneTemplate) Default added in v1.6.0

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

func (*KubeadmControlPlaneTemplate) SetupWebhookWithManager added in v1.6.0

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

func (*KubeadmControlPlaneTemplate) ValidateCreate added in v1.6.0

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

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

func (*KubeadmControlPlaneTemplate) ValidateDelete added in v1.6.0

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

func (*KubeadmControlPlaneTemplate) ValidateUpdate added in v1.6.0

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

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

type ScaleValidator

type ScaleValidator struct {
	Client client.Reader
	// contains filtered or unexported fields
}

ScaleValidator validates KCP for replicas.

func (*ScaleValidator) Handle

Handle will validate for number of replicas.

func (*ScaleValidator) SetupWebhookWithManager

func (v *ScaleValidator) SetupWebhookWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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