mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
* [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]>
11 lines
399 B
Go
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,
|
|
}
|
|
}
|