validation

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: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckServiceAvaliable added in v0.1.2

func CheckServiceAvaliable() error

func ValidateConfigmap added in v0.1.4

func ValidateConfigmap(ctx context.Context, k8sClient client.Client, service *inferenceapi.Service) error

func ValidateModel

func ValidateModel(ctx context.Context, k8sClient client.Client, model *coreapi.OpenModel)

func ValidateModelFlavor

func ValidateModelFlavor(service *inferenceapi.Service, model *coreapi.OpenModel, workload *lws.LeaderWorkerSet) error

func ValidateModelLoader

func ValidateModelLoader(model *coreapi.OpenModel, index int, template corev1.PodTemplateSpec, service *inferenceapi.Service) error

func ValidatePlayground

func ValidatePlayground(ctx context.Context, k8sClient client.Client, playground *inferenceapi.Playground)

func ValidatePlaygroundConditionEqualTo added in v0.1.0

func ValidatePlaygroundConditionEqualTo(ctx context.Context, k8sClient client.Client, playground *inferenceapi.Playground, conditionType string, reason string, status metav1.ConditionStatus)

Verify the condition field of status.

func ValidatePlaygroundStatusEqualTo

func ValidatePlaygroundStatusEqualTo(ctx context.Context, k8sClient client.Client, playground *inferenceapi.Playground, conditionType string, reason string, status metav1.ConditionStatus)

Verify the whole fields of status.

func ValidateService

func ValidateService(ctx context.Context, k8sClient client.Client, service *inferenceapi.Service)

func ValidateServiceAvaliable added in v0.1.2

func ValidateServiceAvaliable(ctx context.Context, k8sClient client.Client, cfg *rest.Config, service *inferenceapi.Service, check CheckServiceAvailableFunc) error

func ValidateServicePods

func ValidateServicePods(ctx context.Context, k8sClient client.Client, service *inferenceapi.Service)

This can only be used in e2e test because of integration test has no lws controllers, no pods will be created.

func ValidateServiceStatusEqualTo

func ValidateServiceStatusEqualTo(ctx context.Context, k8sClient client.Client, service *inferenceapi.Service, conditionType string, reason string, status metav1.ConditionStatus)

func ValidateSkipModelLoader added in v0.1.4

func ValidateSkipModelLoader(model *coreapi.OpenModel, index int, template corev1.PodTemplateSpec, service *inferenceapi.Service) error

ValidateSkipModelLoader validates the model-loader initContainer is not injected into the template and checks if the model-runner contains model credentials environment variables

Types

type CheckServiceAvailableFunc added in v0.1.2

type CheckServiceAvailableFunc func() error

Jump to

Keyboard shortcuts

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