Documentation
¶
Index ¶
- func GetDefaultDeploymentSpec(dangerous bool, resourceRequirements corev1.ResourceRequirements) appsv1.DeploymentSpec
- func GetDefaultRayServiceSpec(dangerous bool, resourceRequirements v1.ResourceRequirements) rayv1.RayServiceSpec
- type DeploymentReconciler
- type KaiwoServiceReconciler
- type RayServiceReconciler
- func (r *RayServiceReconciler) Build(ctx context.Context, k8sClient client.Client) (*appwrapperv1beta2.AppWrapper, error)
- func (r *RayServiceReconciler) GetEmptyObject() *appwrapperv1beta2.AppWrapper
- func (r *RayServiceReconciler) ValidateBeforeCreateOrUpdate(ctx context.Context, actual *appwrapperv1beta2.AppWrapper) (*ctrl.Result, error)
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 (r *DeploymentReconciler) Build(ctx context.Context, _ client.Client) (*appsv1.Deployment, error)
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)
type RayServiceReconciler ¶
type RayServiceReconciler struct {
common.ResourceReconcilerBase[*appwrapperv1beta2.AppWrapper]
KaiwoService *v1alpha1.KaiwoService
}
func NewRayServiceReconciler ¶
func NewRayServiceReconciler(kaiwoService *v1alpha1.KaiwoService) *RayServiceReconciler
func (*RayServiceReconciler) Build ¶
func (r *RayServiceReconciler) Build(ctx context.Context, k8sClient client.Client) (*appwrapperv1beta2.AppWrapper, error)
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)
Click to show internal directories.
Click to hide internal directories.