Documentation
¶
Index ¶
- func SetupKVCacheWebhookWithManager(mgr ctrl.Manager) error
- func SetupModelAdapterWebhook(mgr ctrl.Manager) error
- type KVCacheCustomDefaulter
- type KVCacheCustomValidator
- func (v *KVCacheCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *KVCacheCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *KVCacheCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type ModelAdapterWebhook
- func (w *ModelAdapterWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *ModelAdapterWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *ModelAdapterWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *ModelAdapterWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupKVCacheWebhookWithManager ¶ added in v0.4.0
SetupKVCacheWebhookWithManager registers the webhook for KVCache in the manager.
func SetupModelAdapterWebhook ¶
SetupModelAdapterWebhook will setup the manager to manage the ModelAdapter webhook
Types ¶
type KVCacheCustomDefaulter ¶ added in v0.4.0
type KVCacheCustomDefaulter struct { }
KVCacheCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind KVCache 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 KVCacheCustomValidator ¶ added in v0.4.0
type KVCacheCustomValidator struct { }
KVCacheCustomValidator struct is responsible for validating the KVCache 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 (*KVCacheCustomValidator) ValidateCreate ¶ added in v0.4.0
func (v *KVCacheCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type KVCache.
func (*KVCacheCustomValidator) ValidateDelete ¶ added in v0.4.0
func (v *KVCacheCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type KVCache.
func (*KVCacheCustomValidator) ValidateUpdate ¶ added in v0.4.0
func (v *KVCacheCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type KVCache.
type ModelAdapterWebhook ¶
type ModelAdapterWebhook struct{}
func (*ModelAdapterWebhook) Default ¶
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*ModelAdapterWebhook) ValidateCreate ¶
func (w *ModelAdapterWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ModelAdapterWebhook) ValidateDelete ¶
func (w *ModelAdapterWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ModelAdapterWebhook) ValidateUpdate ¶
func (w *ModelAdapterWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type