workloadservice

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultDeploymentSpec

func GetDefaultDeploymentSpec(dangerous bool, resourceRequirements corev1.ResourceRequirements) appsv1.DeploymentSpec

func GetDefaultRayServiceSpec

func GetDefaultRayServiceSpec(dangerous bool, resourceRequirements v1.ResourceRequirements) rayv1.RayServiceSpec

Types

type DeploymentReconciler

type DeploymentReconciler struct {
	common.ResourceReconcilerBase[*appsv1.Deployment]
	KaiwoService *v1alpha1.KaiwoService
}

func NewDeploymentReconciler

func NewDeploymentReconciler(svc *v1alpha1.KaiwoService) *DeploymentReconciler

func (*DeploymentReconciler) Build

func (*DeploymentReconciler) GetEmptyObject

func (r *DeploymentReconciler) GetEmptyObject() *appsv1.Deployment

func (*DeploymentReconciler) ValidateBeforeCreateOrUpdate

func (r *DeploymentReconciler) ValidateBeforeCreateOrUpdate(ctx context.Context, actual *appsv1.Deployment) (*ctrl.Result, error)

type KaiwoServiceReconciler

type KaiwoServiceReconciler struct {
	common.ReconcilerBase[*v1alpha1.KaiwoService]

	DownloadJobConfigMap *workloadutils.DownloadJobConfigMapReconciler
	DownloadJob          *workloadutils.DownloadJobReconciler
	HuggingFacePVC       *common.StorageReconciler
	DataPVC              *common.StorageReconciler
	LocalQueue           *common.LocalQueueReconciler

	DeploymentReconciler *DeploymentReconciler
	RayServiceReconciler *RayServiceReconciler
}

func NewKaiwoServiceReconciler

func NewKaiwoServiceReconciler(kaiwoService *v1alpha1.KaiwoService) KaiwoServiceReconciler

func (*KaiwoServiceReconciler) GatherStatus

func (r *KaiwoServiceReconciler) GatherStatus(
	ctx context.Context,
	k8sClient client.Client,
	previousStatus v1alpha1.KaiwoServiceStatus,
	downloadJob *batchv1.Job,
) (*v1alpha1.KaiwoServiceStatus, error)

func (*KaiwoServiceReconciler) Reconcile

func (r *KaiwoServiceReconciler) Reconcile(
	ctx context.Context,
	k8sClient client.Client,
	scheme *runtime.Scheme,
) (ctrl.Result, error)

type RayServiceReconciler

type RayServiceReconciler struct {
	common.ResourceReconcilerBase[*appwrapperv1beta2.AppWrapper]
	KaiwoService *v1alpha1.KaiwoService
}

func NewRayServiceReconciler

func NewRayServiceReconciler(kaiwoService *v1alpha1.KaiwoService) *RayServiceReconciler

func (*RayServiceReconciler) Build

func (*RayServiceReconciler) GetEmptyObject

func (r *RayServiceReconciler) GetEmptyObject() *appwrapperv1beta2.AppWrapper

func (*RayServiceReconciler) ValidateBeforeCreateOrUpdate

func (r *RayServiceReconciler) ValidateBeforeCreateOrUpdate(ctx context.Context, actual *appwrapperv1beta2.AppWrapper) (*ctrl.Result, error)

Jump to

Keyboard shortcuts

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