rayclusterreplicaset

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, runtimeConfig config.RuntimeConfig) error

Add creates a new RayClusterReplicaSet Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func GetCondition

GetCondition returns a replicaset condition with the provided type if it exists.

func NewCondition

func NewCondition(condType string, status metav1.ConditionStatus, reason, msg string) metav1.Condition

NewCondition creates a new replicaset condition.

func RemoveCondition

func RemoveCondition(status *orchestrationv1alpha1.RayClusterReplicaSetStatus, condType string)

RemoveCondition removes the condition with the provided type from the replicaset status.

func SetCondition

func SetCondition(status *orchestrationv1alpha1.RayClusterReplicaSetStatus, condition metav1.Condition)

SetCondition adds/replaces the given condition in the replicaset status. If the condition that we are about to add already exists and has the same status and reason then we are not going to update.

Types

type RayClusterReplicaSetReconciler

type RayClusterReplicaSetReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	// A cache raycluster creates/deletes each raycluster replicaset to see
	// We use replicaset namespace/name as an expectation key
	// For example, there is a RayClusterReplicaSet with namespace "aibrix", name "llama7b" and replica 3,
	// We will create the expectation:
	// - "aibrix/llama7b", expects 3 adds.
	Expectations  expectation.ControllerExpectationsInterface
	RuntimeConfig config.RuntimeConfig
}

RayClusterReplicaSetReconciler reconciles a RayClusterReplicaSet object

func (*RayClusterReplicaSetReconciler) Reconcile

Reconcile method moves the RayClusterReplicaSet to desired State

Jump to

Keyboard shortcuts

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