Documentation
¶
Index ¶
- Constants
- func SetupDeploymentWebhookWithManager(mgr ctrl.Manager) error
- func SetupKVCacheWebhookWithManager(mgr ctrl.Manager) error
- func SetupModelAdapterWebhook(mgr ctrl.Manager) error
- func SetupModelWarmupWebhook(mgr ctrl.Manager) error
- func SetupPodAutoscalerWebhookWithManager(mgr ctrl.Manager) error
- func SetupRayClusterFleetWebhookWithManager(mgr ctrl.Manager) error
- func SetupStormServiceWebhookWithManager(mgr ctrl.Manager) error
- type DeploymentCustomDefaulter
- func (r *DeploymentCustomDefaulter) Default(_ context.Context, obj runtime.Object) error
- func (r *DeploymentCustomDefaulter) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *DeploymentCustomDefaulter) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *DeploymentCustomDefaulter) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, 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)
- type ModelWarmupWebhook
- func (w *ModelWarmupWebhook) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *ModelWarmupWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (w *ModelWarmupWebhook) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type PodAutoscalerCustomDefaulter
- type PodAutoscalerCustomValidator
- func (v *PodAutoscalerCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *PodAutoscalerCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *PodAutoscalerCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type RayClusterFleetCustomValidator
- func (v *RayClusterFleetCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *RayClusterFleetCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *RayClusterFleetCustomValidator) ValidateUpdate(_ context.Context, oldObj runtime.Object, newObj runtime.Object) (admission.Warnings, error)
- type StormServiceCustomDefaulter
- func (r *StormServiceCustomDefaulter) Default(_ context.Context, obj runtime.Object) error
- func (r *StormServiceCustomDefaulter) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *StormServiceCustomDefaulter) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *StormServiceCustomDefaulter) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type StormServiceScaleValidator
Constants ¶
const ( // SidecarInjectionAnnotation Annotation used to enable or disable sidecar injection SidecarInjectionAnnotation = "model.aibrix.ai/sidecar-injection" // SidecarInjectionRuntimeImageAnnotation Annotation used to specify a custom image for the sidecar container SidecarInjectionRuntimeImageAnnotation = "model.aibrix.ai/sidecar-runtime-image" SidecarName = "aibrix-runtime" SidecarImage = "aibrix/runtime:v0.5.0" SidecarCommand = "aibrix_runtime" SidecarPort = 8080 SidecarHealthPath = "/healthz" SidecarReadyPath = "/ready" DefaultEngineEndpoint = "http://localhost:8000" DefaultAdapterVolumeName = "adapter-storage" DefaultAdapterMountPath = "/tmp/aibrix/adapters" )
Sidecar injection constants
Variables ¶
This section is empty.
Functions ¶
func SetupDeploymentWebhookWithManager ¶ added in v0.5.0
SetupDeploymentWebhookWithManager registers the webhook for Deployment in the manager.
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
func SetupModelWarmupWebhook ¶ added in v0.8.0
func SetupPodAutoscalerWebhookWithManager ¶ added in v0.5.0
SetupPodAutoscalerWebhookWithManager registers the webhook for PodAutoscaler in the manager.
func SetupRayClusterFleetWebhookWithManager ¶ added in v0.8.0
func SetupStormServiceWebhookWithManager ¶ added in v0.5.0
SetupStormServiceWebhookWithManager registers the webhook for StormService in the manager.
Types ¶
type DeploymentCustomDefaulter ¶ added in v0.5.0
type DeploymentCustomDefaulter struct {
}
func (*DeploymentCustomDefaulter) Default ¶ added in v0.5.0
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*DeploymentCustomDefaulter) ValidateCreate ¶ added in v0.5.0
func (r *DeploymentCustomDefaulter) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*DeploymentCustomDefaulter) ValidateDelete ¶ added in v0.5.0
func (r *DeploymentCustomDefaulter) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*DeploymentCustomDefaulter) ValidateUpdate ¶ added in v0.5.0
func (r *DeploymentCustomDefaulter) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
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
type ModelWarmupWebhook ¶ added in v0.8.0
type ModelWarmupWebhook struct{}
func (*ModelWarmupWebhook) ValidateCreate ¶ added in v0.8.0
func (*ModelWarmupWebhook) ValidateDelete ¶ added in v0.8.0
func (*ModelWarmupWebhook) ValidateUpdate ¶ added in v0.8.0
type PodAutoscalerCustomDefaulter ¶ added in v0.5.0
type PodAutoscalerCustomDefaulter struct {
}
PodAutoscalerCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind PodAutoscaler 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 PodAutoscalerCustomValidator ¶ added in v0.5.0
type PodAutoscalerCustomValidator struct {
}
PodAutoscalerCustomValidator struct is responsible for validating the PodAutoscaler 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 (*PodAutoscalerCustomValidator) ValidateCreate ¶ added in v0.5.0
func (v *PodAutoscalerCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type PodAutoscaler.
func (*PodAutoscalerCustomValidator) ValidateDelete ¶ added in v0.5.0
func (v *PodAutoscalerCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type PodAutoscaler.
func (*PodAutoscalerCustomValidator) ValidateUpdate ¶ added in v0.5.0
func (v *PodAutoscalerCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type PodAutoscaler.
type RayClusterFleetCustomValidator ¶ added in v0.8.0
type RayClusterFleetCustomValidator struct{}
func (*RayClusterFleetCustomValidator) ValidateCreate ¶ added in v0.8.0
func (*RayClusterFleetCustomValidator) ValidateDelete ¶ added in v0.8.0
type StormServiceCustomDefaulter ¶ added in v0.5.0
type StormServiceCustomDefaulter struct {
}
func (*StormServiceCustomDefaulter) Default ¶ added in v0.5.0
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*StormServiceCustomDefaulter) ValidateCreate ¶ added in v0.5.0
func (r *StormServiceCustomDefaulter) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*StormServiceCustomDefaulter) ValidateDelete ¶ added in v0.5.0
func (r *StormServiceCustomDefaulter) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*StormServiceCustomDefaulter) ValidateUpdate ¶ added in v0.5.0
func (r *StormServiceCustomDefaulter) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type StormServiceScaleValidator ¶ added in v0.8.0
StormServiceScaleValidator rejects /scale updates that would set spec.replicas > 1 on a StormService with a declared mode of Pooled. Omitted mode is left alone so inferred pooled objects can still scale spec.replicas, matching validateStormServiceMode.