webhook

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package webhook provides validating and defaulting admission webhooks for RCA Operator CRDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRCAAgentWebhookWithManager

func SetupRCAAgentWebhookWithManager(mgr ctrl.Manager) error

SetupRCAAgentWebhookWithManager registers the webhook with the controller manager.

func SetupRCACorrelationRuleWebhookWithManager

func SetupRCACorrelationRuleWebhookWithManager(mgr ctrl.Manager) error

SetupRCACorrelationRuleWebhookWithManager registers the webhook.

Types

type RCAAgentWebhook

type RCAAgentWebhook struct{}

RCAAgentWebhook implements typed defaulting and validating webhooks for RCAAgent.

func (*RCAAgentWebhook) Default

func (w *RCAAgentWebhook) Default(_ context.Context, agent *rcav1alpha1.RCAAgent) error

Default implements admission.Defaulter[*rcav1alpha1.RCAAgent].

func (*RCAAgentWebhook) ValidateCreate

func (w *RCAAgentWebhook) ValidateCreate(_ context.Context, agent *rcav1alpha1.RCAAgent) (admission.Warnings, error)

ValidateCreate implements admission.Validator[*rcav1alpha1.RCAAgent].

func (*RCAAgentWebhook) ValidateDelete

ValidateDelete implements admission.Validator[*rcav1alpha1.RCAAgent].

func (*RCAAgentWebhook) ValidateUpdate

func (w *RCAAgentWebhook) ValidateUpdate(_ context.Context, _, agent *rcav1alpha1.RCAAgent) (admission.Warnings, error)

ValidateUpdate implements admission.Validator[*rcav1alpha1.RCAAgent].

type RCACorrelationRuleWebhook

type RCACorrelationRuleWebhook struct{}

RCACorrelationRuleWebhook implements typed validating webhook for RCACorrelationRule.

func (*RCACorrelationRuleWebhook) ValidateCreate

ValidateCreate implements admission.Validator[*rcav1alpha1.RCACorrelationRule].

func (*RCACorrelationRuleWebhook) ValidateDelete

ValidateDelete implements admission.Validator[*rcav1alpha1.RCACorrelationRule].

func (*RCACorrelationRuleWebhook) ValidateUpdate

ValidateUpdate implements admission.Validator[*rcav1alpha1.RCACorrelationRule].

Jump to

Keyboard shortcuts

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