controller

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GroupNameKey = "GroupName"
	RoleIDKey    = "RoleID"
)
View Source
const (
	PodDeletionCostAnnotation = corev1.PodDeletionCost
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelServingController

type ModelServingController struct {
	// contains filtered or unexported fields
}

func NewModelServingController

func NewModelServingController(kubeClientSet kubernetes.Interface, modelServingClient clientset.Interface, volcanoClient volcano.Interface) (*ModelServingController, error)

func (*ModelServingController) CreatePodByRole

func (c *ModelServingController) CreatePodByRole(ctx context.Context, role workloadv1alpha1.Role, mi *workloadv1alpha1.ModelServing, roleIndex, groupIndex int, newHash string) error

func (*ModelServingController) CreatePodsForServingGroup

func (c *ModelServingController) CreatePodsForServingGroup(ctx context.Context, mi *workloadv1alpha1.ModelServing, groupIndex int, newHash string) error

func (*ModelServingController) DeleteRole

func (c *ModelServingController) DeleteRole(ctx context.Context, mi *workloadv1alpha1.ModelServing, groupName, roleName, roleID string)

func (*ModelServingController) DeleteServingGroup

func (c *ModelServingController) DeleteServingGroup(mi *workloadv1alpha1.ModelServing, groupname string)

func (*ModelServingController) Run

func (c *ModelServingController) Run(ctx context.Context, workers int)

func (*ModelServingController) UpdateModelServingConditionsStatus

func (c *ModelServingController) UpdateModelServingConditionsStatus(mi *workloadv1alpha1.ModelServing, condition metav1.Condition) error

UpdateModelServingConditionsStatus update conditions ModelServing status.

func (*ModelServingController) UpdateModelServingStatus

func (c *ModelServingController) UpdateModelServingStatus(mi *workloadv1alpha1.ModelServing, revision string) error

UpdateModelServingStatus update replicas in modelServing status.

type RoleWithScore added in v0.2.0

type RoleWithScore struct {
	Name  string
	Score int
	Index int
}

RoleWithScore stores role name and its score

type ServingGroupWithScore added in v0.2.0

type ServingGroupWithScore struct {
	Name  string
	Score int
	Index int
}

ServingGroupWithScore stores serving group name and its score

Jump to

Keyboard shortcuts

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