webhooks

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 10 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 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) InjectDecoder

func (v *ScaleValidator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder. ScaleValidator implements admission.DecoderInjector. A decoder will be automatically injected.

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