webhook

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func SetupBackendRuntimeWebhook(mgr ctrl.Manager) error

SetupBackendRuntimeWebhook will setup the manager to manage the webhooks

func SetupOpenModelWebhook

func SetupOpenModelWebhook(mgr ctrl.Manager) error

SetupOpenModelWebhook will setup the manager to manage the webhooks

func SetupPlaygroundWebhook

func SetupPlaygroundWebhook(mgr ctrl.Manager) error

SetupPlaygroundWebhook will setup the manager to manage the webhooks

func SetupServiceWebhook

func SetupServiceWebhook(mgr ctrl.Manager) error

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

func (w *OpenModelWebhook) Default(ctx context.Context, obj runtime.Object) error

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

func (w *PlaygroundWebhook) Default(ctx context.Context, obj runtime.Object) error

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

func (w *ServiceWebhook) Default(ctx context.Context, obj runtime.Object) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL