v1

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupMdaiCollectorWebhookWithManager

func SetupMdaiCollectorWebhookWithManager(mgr ctrl.Manager) error

SetupMdaiCollectorWebhookWithManager registers the webhook for MdaiCollector in the manager.

func SetupMdaiHubWebhookWithManager

func SetupMdaiHubWebhookWithManager(mgr ctrl.Manager) error

SetupMdaiHubWebhookWithManager registers the webhook for MdaiHub in the manager.

func SetupMdaiObserverWebhookWithManager added in v0.1.21

func SetupMdaiObserverWebhookWithManager(mgr ctrl.Manager) error

SetupMdaiObserverWebhookWithManager registers the webhook for MdaiObserver in the manager.

func ValidateName

func ValidateName(name string) bool

Types

type MdaiCollectorCustomValidator

type MdaiCollectorCustomValidator struct {
}

MdaiCollectorCustomValidator struct is responsible for validating the MdaiCollector resource when it is created, updated, or deleted.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.

func (*MdaiCollectorCustomValidator) Validate

func (*MdaiCollectorCustomValidator) ValidateCreate

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

func (*MdaiCollectorCustomValidator) ValidateDelete

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

func (*MdaiCollectorCustomValidator) ValidateUpdate

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

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

type MdaiHubCustomDefaulter

type MdaiHubCustomDefaulter struct {
}

MdaiHubCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind MdaiHub when those are created or updated.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as it is used only for temporary operations and does not need to be deeply copied.

func (*MdaiHubCustomDefaulter) Default

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

type MdaiHubCustomValidator

type MdaiHubCustomValidator struct {
}

MdaiHubCustomValidator struct is responsible for validating the MdaiHub resource when it is created, updated, or deleted.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.

func (*MdaiHubCustomValidator) Validate

func (v *MdaiHubCustomValidator) Validate(mdaihub *mdaiv1.MdaiHub) (admission.Warnings, error)

func (*MdaiHubCustomValidator) ValidateCreate

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

func (*MdaiHubCustomValidator) ValidateDelete

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

func (*MdaiHubCustomValidator) ValidateUpdate

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

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

type MdaiObserverCustomValidator added in v0.1.21

type MdaiObserverCustomValidator struct {
}

MdaiObserverCustomValidator struct is responsible for validating the MdaiObserver resource when it is created, updated, or deleted.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.

func (*MdaiObserverCustomValidator) ValidateCreate added in v0.1.21

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

func (*MdaiObserverCustomValidator) ValidateDelete added in v0.1.21

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

func (*MdaiObserverCustomValidator) ValidateUpdate added in v0.1.21

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

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

Jump to

Keyboard shortcuts

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