Documentation ¶
Overview ¶
Package webhooks implements docker infrastructure webhooks.
Index ¶
- type DockerCluster
- func (webhook *DockerCluster) Default(_ context.Context, obj runtime.Object) error
- func (webhook *DockerCluster) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *DockerCluster) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (webhook *DockerCluster) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (webhook *DockerCluster) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
- type DockerClusterTemplate
- func (webhook *DockerClusterTemplate) Default(_ context.Context, obj runtime.Object) error
- func (webhook *DockerClusterTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *DockerClusterTemplate) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (webhook *DockerClusterTemplate) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (webhook *DockerClusterTemplate) ValidateUpdate(ctx context.Context, oldRaw, newRaw runtime.Object) (admission.Warnings, error)
- type DockerMachineTemplate
- func (webhook *DockerMachineTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *DockerMachineTemplate) ValidateCreate(_ context.Context, raw runtime.Object) (admission.Warnings, error)
- func (webhook *DockerMachineTemplate) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (webhook *DockerMachineTemplate) ValidateUpdate(ctx context.Context, oldRaw runtime.Object, newRaw runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerCluster ¶
type DockerCluster struct{}
DockerCluster implements a validating and defaulting webhook for DockerCluster.
func (*DockerCluster) Default ¶
Default implements webhook.Defaulter so a webhook will be registered for the type.
func (*DockerCluster) SetupWebhookWithManager ¶
func (webhook *DockerCluster) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*DockerCluster) ValidateCreate ¶
func (webhook *DockerCluster) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*DockerCluster) ValidateDelete ¶
func (webhook *DockerCluster) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*DockerCluster) ValidateUpdate ¶
func (webhook *DockerCluster) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type DockerClusterTemplate ¶
type DockerClusterTemplate struct{}
DockerClusterTemplate implements a validating and defaulting webhook for DockerClusterTemplate.
func (*DockerClusterTemplate) Default ¶
Default implements webhook.Defaulter so a webhook will be registered for the type.
func (*DockerClusterTemplate) SetupWebhookWithManager ¶
func (webhook *DockerClusterTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*DockerClusterTemplate) ValidateCreate ¶
func (webhook *DockerClusterTemplate) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*DockerClusterTemplate) ValidateDelete ¶
func (webhook *DockerClusterTemplate) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*DockerClusterTemplate) ValidateUpdate ¶
func (webhook *DockerClusterTemplate) ValidateUpdate(ctx context.Context, oldRaw, newRaw runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type DockerMachineTemplate ¶
type DockerMachineTemplate struct{}
DockerMachineTemplate implements a custom validation webhook for DockerMachineTemplate. +kubebuilder:object:generate=false
func (*DockerMachineTemplate) SetupWebhookWithManager ¶
func (webhook *DockerMachineTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*DockerMachineTemplate) ValidateCreate ¶
func (webhook *DockerMachineTemplate) ValidateCreate(_ context.Context, raw runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*DockerMachineTemplate) ValidateDelete ¶
func (webhook *DockerMachineTemplate) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.