validation

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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