webhooks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWSMaxDataVolumeCount = 25
)

Variables

This section is empty.

Functions

func IsValidCNI added in v0.4.0

func IsValidCNI(value string) bool

Types

type ApplicationWebhook added in v0.5.0

type ApplicationWebhook struct {
	Client client.Reader
}

func (*ApplicationWebhook) SetupWebhookWithManager added in v0.5.0

func (wh *ApplicationWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ApplicationWebhook) ValidateCreate added in v0.5.0

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

func (*ApplicationWebhook) ValidateDelete added in v0.5.0

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

func (*ApplicationWebhook) ValidateUpdate added in v0.5.0

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

type AttachedClusterWebhook added in v0.4.0

type AttachedClusterWebhook struct {
	Client client.Reader
}

func (*AttachedClusterWebhook) SetupWebhookWithManager added in v0.4.0

func (wh *AttachedClusterWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*AttachedClusterWebhook) ValidateCreate added in v0.4.0

func (*AttachedClusterWebhook) ValidateDelete added in v0.4.0

func (*AttachedClusterWebhook) ValidateUpdate added in v0.4.0

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

type ClusterWebhook

type ClusterWebhook struct {
	Client client.Reader
}

func (*ClusterWebhook) SetupWebhookWithManager

func (wh *ClusterWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ClusterWebhook) ValidateCreate

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

func (*ClusterWebhook) ValidateDelete

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

func (*ClusterWebhook) ValidateUpdate

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

type CustomClusterWebhook added in v0.4.0

type CustomClusterWebhook struct {
	Client client.Reader
}

func (*CustomClusterWebhook) SetupWebhookWithManager added in v0.4.0

func (wh *CustomClusterWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*CustomClusterWebhook) ValidateCreate added in v0.4.0

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

func (*CustomClusterWebhook) ValidateDelete added in v0.4.0

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

func (*CustomClusterWebhook) ValidateUpdate added in v0.4.0

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

ValidateUpdate is not checking for changes in parameters such as cni.type, api address, certSANs, and so on. These parameters are set during cluster initialization and are not expected to change during the lifecycle of the cluster. Altering these values does not impact the system because these parameters are not re-checked after cluster creation.

type CustomMachineWebhook added in v0.5.0

type CustomMachineWebhook struct {
	Client client.Reader
}

func (*CustomMachineWebhook) SetupWebhookWithManager added in v0.5.0

func (wh *CustomMachineWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*CustomMachineWebhook) ValidateCreate added in v0.5.0

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

func (*CustomMachineWebhook) ValidateDelete added in v0.5.0

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

func (*CustomMachineWebhook) ValidateUpdate added in v0.5.0

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

Jump to

Keyboard shortcuts

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