webhooks

package
v0.1.0-latest-stable Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	BFBFileNameExtension = ".bfb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BFB

type BFB struct{}

BFB implements a webhook for the BFB object.

func (*BFB) SetupWebhookWithManager

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

func (*BFB) ValidateCreate

func (r *BFB) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*BFB) ValidateDelete

func (r *BFB) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*BFB) ValidateUpdate

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

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

type DPUDevice

type DPUDevice struct {
	Client client.Client
}

DPUDevice implements a webhook for the DPUDevice object.

func (*DPUDevice) SetupWebhookWithManager

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

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*DPUDevice) ValidateCreate

func (r *DPUDevice) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*DPUDevice) ValidateDelete

func (r *DPUDevice) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*DPUDevice) ValidateUpdate

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

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

type DPUDiscoveryValidator

type DPUDiscoveryValidator struct{}

DPUDiscoveryValidator validates DPUDiscovery objects (e.g. startIP <= endIP).

func (*DPUDiscoveryValidator) SetupWebhookWithManager

func (v *DPUDiscoveryValidator) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager registers the webhook with the manager.

func (*DPUDiscoveryValidator) ValidateCreate

func (v *DPUDiscoveryValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

ValidateCreate validates the DPUDiscovery object on creation.

func (*DPUDiscoveryValidator) ValidateDelete

func (v *DPUDiscoveryValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

ValidateDelete validates the DPUDiscovery object on deletion (no-op).

func (*DPUDiscoveryValidator) ValidateUpdate

func (v *DPUDiscoveryValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate validates the DPUDiscovery object on update.

type DPUFlavor

type DPUFlavor struct{}

DPUFlavor implements a webhook for the DPUFlavor object.

func (*DPUFlavor) Default

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

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

func (*DPUFlavor) SetupWebhookWithManager

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

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*DPUFlavor) ValidateCreate

func (r *DPUFlavor) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*DPUFlavor) ValidateDelete

func (r *DPUFlavor) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*DPUFlavor) ValidateUpdate

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

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

type DPUNode

type DPUNode struct {
	Client client.Client
}

DPUNode implements a webhook for the DPUNode object.

func (*DPUNode) SetupWebhookWithManager

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

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*DPUNode) ValidateCreate

func (r *DPUNode) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*DPUNode) ValidateDelete

func (r *DPUNode) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*DPUNode) ValidateUpdate

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

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

type DPUSet

type DPUSet struct {
	// DeploymentMode is the cluster-wide DPF deployment mode (e.g. zero-trust vs host-trusted),
	// matching DPFOperatorConfig and provisioning controller flags. Required for Astra validation.
	DeploymentMode string
}

DPUSet implements the webhooks for the DPUSet type.

func (*DPUSet) Default

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

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

func (*DPUSet) SetupWebhookWithManager

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

func (*DPUSet) ValidateCreate

func (r *DPUSet) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*DPUSet) ValidateDelete

func (r *DPUSet) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*DPUSet) ValidateUpdate

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