raycluster

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

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

Variables

Functions

func GetWorkloadNameForRayCluster

func GetWorkloadNameForRayCluster(jobName string) string

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() (metav1.Condition, 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) 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

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

Jump to

Keyboard shortcuts

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