Documentation
¶
Index ¶
- Constants
- Variables
- type KaiwoJobReconciler
- type KaiwoQueueConfigReconciler
- func (r *KaiwoQueueConfigReconciler) CreateDefaultKaiwoQueueConfig(ctx context.Context, name string) error
- func (r *KaiwoQueueConfigReconciler) EnsureDefaultKaiwoQueueConfig(ctx context.Context) error
- func (r *KaiwoQueueConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *KaiwoQueueConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *KaiwoQueueConfigReconciler) SyncKueueResources(ctx context.Context, queueConfig *kaiwov1alpha1.KaiwoQueueConfig) error
- type KaiwoServiceReconciler
Constants ¶
const DefaultKaiwoQueueConfigName = "kaiwo"
Variables ¶
var DefaultDeploymentSpec = appsv1.DeploymentSpec{ Replicas: func(i int32) *int32 { return &i }(1), Selector: &metav1.LabelSelector{ MatchLabels: map[string]string{"app": "default-app"}, }, Template: controllerutils.DefaultPodTemplateSpec, }
var DefaultJobSpec = batchv1.JobSpec{ TTLSecondsAfterFinished: func(i int32) *int32 { return &i }(3600), Template: controllerutils.DefaultPodTemplateSpec, }
var DefaultRayJobSpec = rayv1.RayJobSpec{ ShutdownAfterJobFinishes: true, RayClusterSpec: &rayv1.RayClusterSpec{ EnableInTreeAutoscaling: controllerutils.BoolPtr(false), HeadGroupSpec: rayv1.HeadGroupSpec{ Template: controllerutils.DefaultPodTemplateSpec, }, WorkerGroupSpecs: []rayv1.WorkerGroupSpec{ { GroupName: "default-worker-group", Replicas: controllerutils.Int32Ptr(1), MinReplicas: controllerutils.Int32Ptr(1), MaxReplicas: controllerutils.Int32Ptr(1), Template: controllerutils.DefaultPodTemplateSpec, }, }, }, }
Functions ¶
This section is empty.
Types ¶
type KaiwoJobReconciler ¶
KaiwoJobReconciler reconciles a KaiwoJob object
func (*KaiwoJobReconciler) SetupWithManager ¶
func (r *KaiwoJobReconciler) SetupWithManager(mgr ctrl.Manager) error
type KaiwoQueueConfigReconciler ¶
KaiwoQueueConfigReconciler reconciles a KaiwoQueueConfig object
func (*KaiwoQueueConfigReconciler) CreateDefaultKaiwoQueueConfig ¶
func (r *KaiwoQueueConfigReconciler) CreateDefaultKaiwoQueueConfig(ctx context.Context, name string) error
func (*KaiwoQueueConfigReconciler) EnsureDefaultKaiwoQueueConfig ¶
func (r *KaiwoQueueConfigReconciler) EnsureDefaultKaiwoQueueConfig(ctx context.Context) error
func (*KaiwoQueueConfigReconciler) SetupWithManager ¶
func (r *KaiwoQueueConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*KaiwoQueueConfigReconciler) SyncKueueResources ¶
func (r *KaiwoQueueConfigReconciler) SyncKueueResources(ctx context.Context, queueConfig *kaiwov1alpha1.KaiwoQueueConfig) error
type KaiwoServiceReconciler ¶
KaiwoServiceReconciler reconciles a KaiwoService object
func (*KaiwoServiceReconciler) Reconcile ¶
func (r *KaiwoServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the KaiwoService object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.20.0/pkg/reconcile
func (*KaiwoServiceReconciler) SetupWithManager ¶
func (r *KaiwoServiceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.