webhook

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountingSetWebhook

type AccountingSetWebhook struct{}

func (*AccountingSetWebhook) SetupWebhookWithManager

func (r *AccountingSetWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*AccountingSetWebhook) ValidateCreate

func (r *AccountingSetWebhook) ValidateCreate(ctx context.Context, accounting *slinkyv1beta1.Accounting) (admission.Warnings, error)

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

func (*AccountingSetWebhook) ValidateDelete

func (r *AccountingSetWebhook) ValidateDelete(ctx context.Context, accounting *slinkyv1beta1.Accounting) (admission.Warnings, error)

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

func (*AccountingSetWebhook) ValidateUpdate

func (r *AccountingSetWebhook) ValidateUpdate(ctx context.Context, oldAccounting, newAccounting *slinkyv1beta1.Accounting) (admission.Warnings, error)

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

type ControllerWebhook

type ControllerWebhook struct {
	client.Client
}

func (*ControllerWebhook) SetupWebhookWithManager

func (r *ControllerWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ControllerWebhook) ValidateCreate

func (r *ControllerWebhook) ValidateCreate(ctx context.Context, controller *slinkyv1beta1.Controller) (admission.Warnings, error)

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

func (*ControllerWebhook) ValidateDelete

func (r *ControllerWebhook) ValidateDelete(ctx context.Context, controller *slinkyv1beta1.Controller) (admission.Warnings, error)

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

func (*ControllerWebhook) ValidateUpdate

func (r *ControllerWebhook) ValidateUpdate(ctx context.Context, oldController, newController *slinkyv1beta1.Controller) (admission.Warnings, error)

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

type LoginSetWebhook

type LoginSetWebhook struct{}

func (*LoginSetWebhook) SetupWebhookWithManager

func (r *LoginSetWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*LoginSetWebhook) ValidateCreate

func (r *LoginSetWebhook) ValidateCreate(ctx context.Context, loginset *slinkyv1beta1.LoginSet) (admission.Warnings, error)

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

func (*LoginSetWebhook) ValidateDelete

func (r *LoginSetWebhook) ValidateDelete(ctx context.Context, loginset *slinkyv1beta1.LoginSet) (admission.Warnings, error)

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

func (*LoginSetWebhook) ValidateUpdate

func (r *LoginSetWebhook) ValidateUpdate(ctx context.Context, oldLoginset, newLoginset *slinkyv1beta1.LoginSet) (admission.Warnings, error)

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

type NodeSetWebhook

type NodeSetWebhook struct{}

func (*NodeSetWebhook) SetupWebhookWithManager

func (r *NodeSetWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*NodeSetWebhook) ValidateCreate

func (r *NodeSetWebhook) ValidateCreate(ctx context.Context, nodeset *slinkyv1beta1.NodeSet) (admission.Warnings, error)

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

func (*NodeSetWebhook) ValidateDelete

func (r *NodeSetWebhook) ValidateDelete(ctx context.Context, nodeset *slinkyv1beta1.NodeSet) (admission.Warnings, error)

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

func (*NodeSetWebhook) ValidateUpdate

func (r *NodeSetWebhook) ValidateUpdate(ctx context.Context, oldNodeSet, newNodeSet *slinkyv1beta1.NodeSet) (admission.Warnings, error)

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

type PodBindingWebhook

type PodBindingWebhook struct {
	client.Client
}

func (*PodBindingWebhook) Default

func (r *PodBindingWebhook) Default(ctx context.Context, binding *corev1.Binding) error

Default implements admission.CustomDefaulter.

func (*PodBindingWebhook) SetupWebhookWithManager

func (r *PodBindingWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

type RestapiWebhook

type RestapiWebhook struct{}

func (*RestapiWebhook) SetupWebhookWithManager

func (r *RestapiWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*RestapiWebhook) ValidateCreate

func (r *RestapiWebhook) ValidateCreate(ctx context.Context, restapi *slinkyv1beta1.RestApi) (admission.Warnings, error)

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

func (*RestapiWebhook) ValidateDelete

func (r *RestapiWebhook) ValidateDelete(ctx context.Context, restapi *slinkyv1beta1.RestApi) (admission.Warnings, error)

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

func (*RestapiWebhook) ValidateUpdate

func (r *RestapiWebhook) ValidateUpdate(ctx context.Context, oldRestapi, newRestapi *slinkyv1beta1.RestApi) (admission.Warnings, error)

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

type TokenWebhook

type TokenWebhook struct{}

func (*TokenWebhook) SetupWebhookWithManager

func (r *TokenWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*TokenWebhook) ValidateCreate

func (r *TokenWebhook) ValidateCreate(ctx context.Context, token *slinkyv1beta1.Token) (admission.Warnings, error)

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

func (*TokenWebhook) ValidateDelete

func (r *TokenWebhook) ValidateDelete(ctx context.Context, token *slinkyv1beta1.Token) (admission.Warnings, error)

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

func (*TokenWebhook) ValidateUpdate

func (r *TokenWebhook) ValidateUpdate(ctx context.Context, oldToken, newToken *slinkyv1beta1.Token) (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