Documentation
¶
Index ¶
- func SetupMdaiCollectorWebhookWithManager(mgr ctrl.Manager) error
- func SetupMdaiHubWebhookWithManager(mgr ctrl.Manager) error
- func SetupMdaiObserverWebhookWithManager(mgr ctrl.Manager) error
- func ValidateName(name string) bool
- type MdaiCollectorCustomValidator
- func (v *MdaiCollectorCustomValidator) Validate(mdaiCollector *mdaiv1.MdaiCollector) (admission.Warnings, error)
- func (v *MdaiCollectorCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiCollectorCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiCollectorCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type MdaiHubCustomDefaulter
- type MdaiHubCustomValidator
- func (v *MdaiHubCustomValidator) Validate(mdaihub *mdaiv1.MdaiHub) (admission.Warnings, error)
- func (v *MdaiHubCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiHubCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiHubCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type MdaiObserverCustomValidator
- func (v *MdaiObserverCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiObserverCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiObserverCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupMdaiCollectorWebhookWithManager ¶
SetupMdaiCollectorWebhookWithManager registers the webhook for MdaiCollector in the manager.
func SetupMdaiHubWebhookWithManager ¶
SetupMdaiHubWebhookWithManager registers the webhook for MdaiHub in the manager.
func SetupMdaiObserverWebhookWithManager ¶ added in v0.1.21
SetupMdaiObserverWebhookWithManager registers the webhook for MdaiObserver in the manager.
func ValidateName ¶
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 (v *MdaiCollectorCustomValidator) Validate(mdaiCollector *mdaiv1.MdaiCollector) (admission.Warnings, error)
func (*MdaiCollectorCustomValidator) ValidateCreate ¶
func (v *MdaiCollectorCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type MdaiCollector.
func (*MdaiCollectorCustomValidator) ValidateDelete ¶
func (v *MdaiCollectorCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
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.
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) ValidateCreate ¶
func (v *MdaiHubCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type MdaiHub.
func (*MdaiHubCustomValidator) ValidateDelete ¶
func (v *MdaiHubCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
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
func (v *MdaiObserverCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type MdaiObserver.
func (*MdaiObserverCustomValidator) ValidateDelete ¶ added in v0.1.21
func (v *MdaiObserverCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
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.