Documentation
¶
Index ¶
- Variables
- type ApplicationWebhook
- func (r *ApplicationWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *ApplicationWebhook) Register(mgr ctrl.Manager, log *logr.Logger) error
- func (r *ApplicationWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (r *ApplicationWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error
- func (r *ApplicationWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
- type ComponentWebhook
- func (r *ComponentWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *ComponentWebhook) Register(mgr ctrl.Manager, log *logr.Logger) error
- func (r *ComponentWebhook) UpdateNudgedComponentStatus(ctx context.Context, obj runtime.Object) error
- func (r *ComponentWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (r *ComponentWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error
- func (r *ComponentWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
Constants ¶
This section is empty.
Variables ¶
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 ¶
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*ApplicationWebhook) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ApplicationWebhook) ValidateDelete ¶
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 ¶
Default implements webhook.Defaulter so a webhook will be registered for the type
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 ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ComponentWebhook) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ComponentWebhook) ValidateUpdate ¶
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type