Documentation ¶
Overview ¶
Package webhooks provides the validating webhook for KubeadmControlPlane scale subresource.
Index ¶
- type KubeadmControlPlane
- func (webhook *KubeadmControlPlane) Default(_ context.Context, obj runtime.Object) error
- func (webhook *KubeadmControlPlane) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *KubeadmControlPlane) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (webhook *KubeadmControlPlane) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (webhook *KubeadmControlPlane) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type KubeadmControlPlaneTemplate
- func (webhook *KubeadmControlPlaneTemplate) Default(_ context.Context, obj runtime.Object) error
- func (webhook *KubeadmControlPlaneTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *KubeadmControlPlaneTemplate) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (webhook *KubeadmControlPlaneTemplate) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (webhook *KubeadmControlPlaneTemplate) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type ScaleValidator
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
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
func (webhook *KubeadmControlPlaneTemplate) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
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(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type ScaleValidator ¶
ScaleValidator validates KCP for replicas.
func (*ScaleValidator) SetupWebhookWithManager ¶
func (v *ScaleValidator) SetupWebhookWithManager(mgr ctrl.Manager) error