Documentation ¶
Index ¶
- Constants
- Variables
- func GetWorkloadNameForRayCluster(jobName string, jobUID types.UID) string
- func SetupIndexes(ctx context.Context, indexer client.FieldIndexer) error
- func SetupRayClusterWebhook(mgr ctrl.Manager, opts ...jobframework.Option) error
- type RayCluster
- func (j *RayCluster) Finished() (message string, success, finished bool)
- func (j *RayCluster) GVK() schema.GroupVersionKind
- func (j *RayCluster) IsActive() bool
- func (j *RayCluster) IsSuspended() bool
- func (j *RayCluster) Object() client.Object
- func (j *RayCluster) PodSets() []kueue.PodSet
- func (j *RayCluster) PodsReady() bool
- func (j *RayCluster) RestorePodSetsInfo(podSetsInfo []podset.PodSetInfo) bool
- func (j *RayCluster) RunWithPodSetsInfo(podSetsInfo []podset.PodSetInfo) error
- func (j *RayCluster) Suspend()
- type RayClusterWebhook
- func (w *RayClusterWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *RayClusterWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *RayClusterWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *RayClusterWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
View Source
const (
FrameworkName = "ray.io/raycluster"
)
Variables ¶
View Source
var NewReconciler = jobframework.NewGenericReconcilerFactory(func() jobframework.GenericJob { return &RayCluster{} })
Functions ¶
func SetupIndexes ¶
func SetupIndexes(ctx context.Context, indexer client.FieldIndexer) error
func SetupRayClusterWebhook ¶
func SetupRayClusterWebhook(mgr ctrl.Manager, opts ...jobframework.Option) error
SetupRayClusterWebhook configures the webhook for rayv1 RayCluster.
Types ¶
type RayCluster ¶
type RayCluster rayv1.RayCluster
func (*RayCluster) Finished ¶
func (j *RayCluster) Finished() (message string, success, finished bool)
func (*RayCluster) GVK ¶
func (j *RayCluster) GVK() schema.GroupVersionKind
func (*RayCluster) IsActive ¶
func (j *RayCluster) IsActive() bool
func (*RayCluster) IsSuspended ¶
func (j *RayCluster) IsSuspended() bool
func (*RayCluster) Object ¶
func (j *RayCluster) Object() client.Object
func (*RayCluster) PodSets ¶
func (j *RayCluster) PodSets() []kueue.PodSet
func (*RayCluster) PodsReady ¶
func (j *RayCluster) PodsReady() bool
func (*RayCluster) RestorePodSetsInfo ¶
func (j *RayCluster) RestorePodSetsInfo(podSetsInfo []podset.PodSetInfo) bool
func (*RayCluster) RunWithPodSetsInfo ¶
func (j *RayCluster) RunWithPodSetsInfo(podSetsInfo []podset.PodSetInfo) error
func (*RayCluster) Suspend ¶
func (j *RayCluster) Suspend()
type RayClusterWebhook ¶
type RayClusterWebhook struct {
// contains filtered or unexported fields
}
func (*RayClusterWebhook) Default ¶
Default implements webhook.CustomDefaulter so a webhook will be registered for the type
func (*RayClusterWebhook) ValidateCreate ¶
func (w *RayClusterWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*RayClusterWebhook) ValidateDelete ¶
func (w *RayClusterWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*RayClusterWebhook) ValidateUpdate ¶
func (w *RayClusterWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type
Click to show internal directories.
Click to hide internal directories.