webhook

package
v0.150.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupCollectorWebhook

func SetupCollectorWebhook(mgr ctrl.Manager, cfg config.Config, reviewer *rbac.Reviewer, metrics *v1beta1.Metrics, bv BuildValidator, fipsCheck fips.FIPSCheck) error

func SetupInstrumentationWebhook

func SetupInstrumentationWebhook(mgr ctrl.Manager, cfg config.Config) error

func SetupOpAMPBridgeWebhook

func SetupOpAMPBridgeWebhook(mgr ctrl.Manager, cfg config.Config) error

func SetupTargetAllocatorWebhook

func SetupTargetAllocatorWebhook(mgr ctrl.Manager, cfg config.Config, reviewer *rbac.Reviewer) error

func ValidatePorts

func ValidatePorts(ports []v1beta1.PortsSpec) error

Types

type BuildValidator

type BuildValidator func(ctx context.Context, c v1beta1.OpenTelemetryCollector) admission.Warnings

BuildValidator enables running the manifest generators for the collector reconciler +kubebuilder:object:generate=false

type CollectorWebhook

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

func NewCollectorWebhook

func NewCollectorWebhook(
	logger logr.Logger,
	scheme *runtime.Scheme,
	cfg config.Config,
	reviewer *rbac.Reviewer,
	recorder events.EventRecorder,
	metrics *v1beta1.Metrics,
	bv BuildValidator,
	fips fips.FIPSCheck,
) *CollectorWebhook

func (CollectorWebhook) Default

func (CollectorWebhook) Validate

func (CollectorWebhook) ValidateCreate

func (CollectorWebhook) ValidateDelete

func (CollectorWebhook) ValidateUpdate

func (c CollectorWebhook) ValidateUpdate(ctx context.Context, otelcolOld, otelcol *v1beta1.OpenTelemetryCollector) (admission.Warnings, error)

type InstrumentationWebhook

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

func NewInstrumentationWebhook

func NewInstrumentationWebhook(logger logr.Logger, scheme *runtime.Scheme, cfg config.Config) *InstrumentationWebhook

func (InstrumentationWebhook) Default

func (w InstrumentationWebhook) Default(_ context.Context, instrumentation *v1alpha1.Instrumentation) error

func (InstrumentationWebhook) ValidateCreate

func (InstrumentationWebhook) ValidateDelete

func (InstrumentationWebhook) ValidateUpdate

type OpAMPBridgeWebhook

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

func (*OpAMPBridgeWebhook) Default

func (o *OpAMPBridgeWebhook) Default(_ context.Context, opampBridge *v1alpha1.OpAMPBridge) error

func (*OpAMPBridgeWebhook) ValidateCreate

func (o *OpAMPBridgeWebhook) ValidateCreate(_ context.Context, opampBridge *v1alpha1.OpAMPBridge) (admission.Warnings, error)

func (*OpAMPBridgeWebhook) ValidateDelete

func (o *OpAMPBridgeWebhook) ValidateDelete(_ context.Context, opampBridge *v1alpha1.OpAMPBridge) (admission.Warnings, error)

func (*OpAMPBridgeWebhook) ValidateUpdate

func (o *OpAMPBridgeWebhook) ValidateUpdate(_ context.Context, _, opampBridge *v1alpha1.OpAMPBridge) (admission.Warnings, error)

type TargetAllocatorWebhook

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

func (TargetAllocatorWebhook) Default

func (w TargetAllocatorWebhook) Default(_ context.Context, targetallocator *v1alpha1.TargetAllocator) error

func (TargetAllocatorWebhook) ValidateCreate

func (TargetAllocatorWebhook) ValidateDelete

func (TargetAllocatorWebhook) ValidateUpdate

Directories

Path Synopsis
Package podmutation contains the webhook that injects sidecars into pods.
Package podmutation contains the webhook that injects sidecars into pods.

Jump to

Keyboard shortcuts

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