v1

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: AGPL-3.0 Imports: 26 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 SetupMdaiIngressWebhookWithManager added in v0.2.6

func SetupMdaiIngressWebhookWithManager(mgr ctrl.Manager) error

SetupMdaiIngressWebhookWithManager registers the webhook for MdaiIngress 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 SetupMdaiReplayWebhookWithManager added in v0.2.9

func SetupMdaiReplayWebhookWithManager(mgr ctrl.Manager) error

SetupMdaiReplayWebhookWithManager registers the webhook for MdaiReplay 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

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 MdaiIngressCustomDefaulter added in v0.2.6

type MdaiIngressCustomDefaulter struct{}

MdaiIngressCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind MdaiIngress 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 (*MdaiIngressCustomDefaulter) Default added in v0.2.6

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

type MdaiIngressCustomValidator added in v0.2.6

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

MdaiIngressCustomValidator struct is responsible for validating the MdaiIngress 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 (*MdaiIngressCustomValidator) Validate added in v0.2.6

func (*MdaiIngressCustomValidator) ValidateCreate added in v0.2.6

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

func (*MdaiIngressCustomValidator) ValidateDelete added in v0.2.6

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

func (*MdaiIngressCustomValidator) ValidateUpdate added in v0.2.6

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

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(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)

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

type MdaiReplayCustomValidator added in v0.2.9

type MdaiReplayCustomValidator struct {
}

MdaiReplayCustomValidator struct is responsible for validating the MdaiReplay 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 (*MdaiReplayCustomValidator) ValidateCreate added in v0.2.9

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

func (*MdaiReplayCustomValidator) ValidateDelete added in v0.2.9

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

func (*MdaiReplayCustomValidator) ValidateUpdate added in v0.2.9

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

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

type ValidatorMode added in v0.2.9

type ValidatorMode string
const (
	ReplayCustomResourceValidatorMode ValidatorMode = "ValidateForReplayCR"
	HubAutomationValidatorMode        ValidatorMode = "ValidateForHubAutomation"
)

Jump to

Keyboard shortcuts

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