raycluster

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FrameworkName = "ray.io/raycluster"
)

Variables

Functions

func GetWorkloadNameForRayCluster

func GetWorkloadNameForRayCluster(jobName string, jobUID types.UID) string

func NewJob added in v0.9.0

func NewJob() jobframework.GenericJob

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 (*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) PodLabelSelector added in v0.9.0

func (j *RayCluster) PodLabelSelector() string

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

func (w *RayClusterWebhook) Default(ctx context.Context, obj runtime.Object) error

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

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

Jump to

Keyboard shortcuts

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