Documentation
¶
Index ¶
- Variables
- func SetupBackendRuntimeWebhook(mgr ctrl.Manager) error
- func SetupOpenModelWebhook(mgr ctrl.Manager) error
- func SetupPlaygroundWebhook(mgr ctrl.Manager) error
- func SetupServiceWebhook(mgr ctrl.Manager) error
- type BackendRuntimeWebhook
- func (w *BackendRuntimeWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *BackendRuntimeWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *BackendRuntimeWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *BackendRuntimeWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type OpenModelWebhook
- func (w *OpenModelWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *OpenModelWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *OpenModelWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *OpenModelWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type PlaygroundWebhook
- func (w *PlaygroundWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *PlaygroundWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *PlaygroundWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *PlaygroundWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type ServiceWebhook
- func (w *ServiceWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *ServiceWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *ServiceWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *ServiceWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
var SUPPORTED_OBJ_STORES = map[string]struct{}{ modelSource.GCS: {}, modelSource.OSS: {}, modelSource.S3: {}, modelSource.Ollama: {}, modelSource.HostPath: {}, }
Functions ¶
func SetupBackendRuntimeWebhook ¶ added in v0.0.7
SetupBackendRuntimeWebhook will setup the manager to manage the webhooks
func SetupOpenModelWebhook ¶
SetupOpenModelWebhook will setup the manager to manage the webhooks
func SetupPlaygroundWebhook ¶
SetupPlaygroundWebhook will setup the manager to manage the webhooks
func SetupServiceWebhook ¶
SetupServiceWebhook will setup the manager to manage the webhooks
Types ¶
type BackendRuntimeWebhook ¶ added in v0.0.7
type BackendRuntimeWebhook struct{}
func (*BackendRuntimeWebhook) Default ¶ added in v0.0.7
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*BackendRuntimeWebhook) ValidateCreate ¶ added in v0.0.7
func (w *BackendRuntimeWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*BackendRuntimeWebhook) ValidateDelete ¶ added in v0.0.7
func (w *BackendRuntimeWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*BackendRuntimeWebhook) ValidateUpdate ¶ added in v0.0.7
func (w *BackendRuntimeWebhook) 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 OpenModelWebhook ¶
type OpenModelWebhook struct{}
func (*OpenModelWebhook) Default ¶
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*OpenModelWebhook) ValidateCreate ¶
func (w *OpenModelWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*OpenModelWebhook) ValidateDelete ¶
func (w *OpenModelWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*OpenModelWebhook) ValidateUpdate ¶
func (w *OpenModelWebhook) 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 PlaygroundWebhook ¶
type PlaygroundWebhook struct{}
func (*PlaygroundWebhook) Default ¶
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*PlaygroundWebhook) ValidateCreate ¶
func (w *PlaygroundWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*PlaygroundWebhook) ValidateDelete ¶
func (w *PlaygroundWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*PlaygroundWebhook) ValidateUpdate ¶
func (w *PlaygroundWebhook) 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 ServiceWebhook ¶
type ServiceWebhook struct{}
func (*ServiceWebhook) Default ¶
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*ServiceWebhook) ValidateCreate ¶
func (w *ServiceWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ServiceWebhook) ValidateDelete ¶
func (w *ServiceWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ServiceWebhook) ValidateUpdate ¶
func (w *ServiceWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type