Files
fscnickandGitHub b916d9eef6 fix delete volcano PodGroup unconditionally (#4669)
* [RayJob][volcano] CleanupOnCompletion update PodGroup instead of deletion

Signed-off-by: fscnick <[email protected]>

* [RayJob][volcano] exclude cluster selector.

Signed-off-by: fscnick <[email protected]>

* [RayJob][volcano] add unit test

Signed-off-by: fscnick <[email protected]>

* [RayJob][volcano] add test cases to ensure batchSchedulerOnCompletion called

Signed-off-by: fscnick <[email protected]>

* [RayJob][volcano] fix comment

Signed-off-by: fscnick <[email protected]>

* [RayJob][volcano] the bool return of CleanupOnCompletion reflect the update

Signed-off-by: fscnick <[email protected]>

* [RayJob][volcano] add unit test for sidecarmode

Signed-off-by: fscnick <[email protected]>

* [RayJob][volcano] early return if RayJob has been deleted

Signed-off-by: fscnick <[email protected]>

* [RayJob][volcano] fix test pass for wrong reason

Signed-off-by: fscnick <[email protected]>

* [RayJob][volcano] fix comment in the tests

Signed-off-by: fscnick <[email protected]>

* Revert "[RayJob][volcano] early return if RayJob has been deleted"

This reverts commit 0da4e8b9ca811474d425e597e2d3a337fd64cb08.

* [RayJob][volcano] use named return in syncPodGroup

Signed-off-by: fscnick <[email protected]>

---------

Signed-off-by: fscnick <[email protected]>
2026-04-17 13:06:23 -07:00

11 lines
399 B
Go

package batchscheduler
import schedulerinterface "github.com/ray-project/kuberay/ray-operator/controllers/ray/batchscheduler/interface"
// NewSchedulerManagerForTest creates a SchedulerManager with a custom BatchScheduler for testing purposes.
func NewSchedulerManagerForTest(scheduler schedulerinterface.BatchScheduler) *SchedulerManager {
return &SchedulerManager{
scheduler: scheduler,
}
}