Documentation
¶
Index ¶
- func SetupMdaiCollectorWebhookWithManager(mgr ctrl.Manager) error
- func SetupMdaiHubWebhookWithManager(mgr ctrl.Manager) error
- func SetupMdaiIngressWebhookWithManager(mgr ctrl.Manager) error
- func SetupMdaiObserverWebhookWithManager(mgr ctrl.Manager) error
- func SetupMdaiReplayWebhookWithManager(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(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiCollectorCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiCollectorCustomValidator) ValidateUpdate(_ context.Context, _, 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 (*MdaiHubCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiHubCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type MdaiIngressCustomDefaulter
- type MdaiIngressCustomValidator
- func (v *MdaiIngressCustomValidator) Validate(ctx context.Context, mdaiIngress *mdaiv1.MdaiIngress) (admission.Warnings, error)
- func (v *MdaiIngressCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiIngressCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiIngressCustomValidator) ValidateUpdate(ctx context.Context, _ runtime.Object, newObj runtime.Object) (admission.Warnings, error)
- type MdaiObserverCustomValidator
- func (v *MdaiObserverCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*MdaiObserverCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *MdaiObserverCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type MdaiReplayCustomValidator
- func (*MdaiReplayCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*MdaiReplayCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (*MdaiReplayCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type ValidatorMode
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 SetupMdaiIngressWebhookWithManager ¶ added in v0.2.6
SetupMdaiIngressWebhookWithManager registers the webhook for MdaiIngress in the manager.
func SetupMdaiObserverWebhookWithManager ¶ added in v0.1.21
SetupMdaiObserverWebhookWithManager registers the webhook for MdaiObserver in the manager.
func SetupMdaiReplayWebhookWithManager ¶ added in v0.2.9
SetupMdaiReplayWebhookWithManager registers the webhook for MdaiReplay 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(_ 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(_ 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(_ context.Context, _, 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 (*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 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.
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 (v *MdaiIngressCustomValidator) Validate(ctx context.Context, mdaiIngress *mdaiv1.MdaiIngress) (admission.Warnings, error)
func (*MdaiIngressCustomValidator) ValidateCreate ¶ added in v0.2.6
func (v *MdaiIngressCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type MdaiIngress.
func (*MdaiIngressCustomValidator) ValidateDelete ¶ added in v0.2.6
func (v *MdaiIngressCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type MdaiINgress.
func (*MdaiIngressCustomValidator) ValidateUpdate ¶ added in v0.2.6
func (v *MdaiIngressCustomValidator) ValidateUpdate(ctx context.Context, _ runtime.Object, newObj runtime.Object) (admission.Warnings, error)
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
func (v *MdaiObserverCustomValidator) ValidateCreate(_ 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 (*MdaiObserverCustomValidator) ValidateDelete(_ 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(_ 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
func (*MdaiReplayCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type MdaiReplay.
func (*MdaiReplayCustomValidator) ValidateDelete ¶ added in v0.2.9
func (*MdaiReplayCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
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" )