raycluster

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterWrapper

type ClusterWrapper struct{ rayv1.RayCluster }

ClusterWrapper wraps a RayCluster.

func MakeCluster

func MakeCluster(name, ns string) *ClusterWrapper

MakeCluster creates a wrapper for rayCluster

func (*ClusterWrapper) Clone

func (j *ClusterWrapper) Clone() *ClusterWrapper

Clone returns deep copy of the Job.

func (*ClusterWrapper) NodeSelectorHeadGroup

func (j *ClusterWrapper) NodeSelectorHeadGroup(k, v string) *ClusterWrapper

NodeSelector adds a node selector to the job's head.

func (*ClusterWrapper) Obj

func (j *ClusterWrapper) Obj() *rayv1.RayCluster

Obj returns the inner Job.

func (*ClusterWrapper) Queue

func (j *ClusterWrapper) Queue(queue string) *ClusterWrapper

Queue updates the queue name of the job

func (*ClusterWrapper) RequestHead

func (j *ClusterWrapper) RequestHead(name corev1.ResourceName, quantity string) *ClusterWrapper

func (*ClusterWrapper) RequestWorkerGroup

func (j *ClusterWrapper) RequestWorkerGroup(name corev1.ResourceName, quantity string) *ClusterWrapper

func (*ClusterWrapper) Suspend

func (j *ClusterWrapper) Suspend(s bool) *ClusterWrapper

Suspend updates the suspend status of the job

func (*ClusterWrapper) WithEnableAutoscaling

func (j *ClusterWrapper) WithEnableAutoscaling(value *bool) *ClusterWrapper

func (*ClusterWrapper) WithHeadGroupSpec

func (j *ClusterWrapper) WithHeadGroupSpec(value rayv1.HeadGroupSpec) *ClusterWrapper

func (*ClusterWrapper) WithPriorityClassName

func (j *ClusterWrapper) WithPriorityClassName(value string) *ClusterWrapper

func (*ClusterWrapper) WithWorkerGroups

func (j *ClusterWrapper) WithWorkerGroups(workers ...rayv1.WorkerGroupSpec) *ClusterWrapper

func (*ClusterWrapper) WithWorkerPriorityClassName

func (j *ClusterWrapper) WithWorkerPriorityClassName(value string) *ClusterWrapper

func (*ClusterWrapper) WorkloadPriorityClass

func (j *ClusterWrapper) WorkloadPriorityClass(wpc string) *ClusterWrapper

WorkloadPriorityClass updates job workloadpriorityclass.

Jump to

Keyboard shortcuts

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