webhooks

package
v0.0.0-...-50e9b76 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnabledWebhooks = []webhook.Webhook{
	&ApplicationWebhook{},
	&ComponentWebhook{},
}

EnabledWebhooks is a slice containing references to all the webhooks that have to be registered

Functions

This section is empty.

Types

type ApplicationWebhook

type ApplicationWebhook struct {
	// contains filtered or unexported fields
}

Webhook describes the data structure for the release webhook

func (*ApplicationWebhook) Default

func (r *ApplicationWebhook) Default(ctx context.Context, obj runtime.Object) error

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ApplicationWebhook) Register

func (w *ApplicationWebhook) Register(mgr ctrl.Manager, log *logr.Logger) error

func (*ApplicationWebhook) ValidateCreate

func (r *ApplicationWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error

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

func (*ApplicationWebhook) ValidateDelete

func (r *ApplicationWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error

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

func (*ApplicationWebhook) ValidateUpdate

func (r *ApplicationWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

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

type ComponentWebhook

type ComponentWebhook struct {
	// contains filtered or unexported fields
}

log is for logging in this package. Webhook describes the data structure for the release webhook

func (*ComponentWebhook) Default

func (r *ComponentWebhook) Default(ctx context.Context, obj runtime.Object) error

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ComponentWebhook) Register

func (w *ComponentWebhook) Register(mgr ctrl.Manager, log *logr.Logger) error

func (*ComponentWebhook) UpdateNudgedComponentStatus

func (r *ComponentWebhook) UpdateNudgedComponentStatus(ctx context.Context, obj runtime.Object) error

UpdateNudgedComponentStatus retrieves the list of components that the Component nudges and updates their statuses to list the component as a nudging component (status.BuildNudgedBy)

func (*ComponentWebhook) ValidateCreate

func (r *ComponentWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error

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

func (*ComponentWebhook) ValidateDelete

func (r *ComponentWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error

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

func (*ComponentWebhook) ValidateUpdate

func (r *ComponentWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) 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