webhooks

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package webhooks implements docker infrastructure webhooks.

Index

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

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

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

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

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.

func (*DockerMachineTemplate) ValidateUpdate

func (webhook *DockerMachineTemplate) ValidateUpdate(ctx context.Context, oldRaw runtime.Object, newRaw runtime.Object) (admission.Warnings, error)

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

Jump to

Keyboard shortcuts

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