Documentation ¶
Index ¶
- Constants
- Variables
- func GetJob(t Test, namespace, name string) *batchv1.Job
- func GetRayCluster(t Test, namespace, name string) *rayv1.RayCluster
- func GetRayImage() string
- func GetRayJob(t Test, namespace, name string) *rayv1.RayJob
- func GetRayJobId(t Test, namespace, name string) string
- func GetRayVersion() string
- func Job(t Test, namespace, name string) func(g gomega.Gomega) *batchv1.Job
- func Jobs(t Test, namespace string) func(g gomega.Gomega) []batchv1.Job
- func NotFound[T any](fn func(g gomega.Gomega) (T, error)) func(g gomega.Gomega) bool
- func Pods(t Test, namespace string, options ...Option[*metav1.ListOptions]) func(g gomega.Gomega) []corev1.Pod
- func Ptr[T any](v T) *T
- func RayCluster(t Test, namespace, name string) func(g gomega.Gomega) *rayv1.RayCluster
- func RayClusterOrError(t Test, namespace, name string) func(g gomega.Gomega) (*rayv1.RayCluster, error)
- func RayClusterState(cluster *rayv1.RayCluster) rayv1.ClusterState
- func RayJob(t Test, namespace, name string) func(g gomega.Gomega) *rayv1.RayJob
- func RayJobDeploymentStatus(job *rayv1.RayJob) rayv1.JobDeploymentStatus
- func RayJobReason(job *rayv1.RayJob) rayv1.JobFailedReason
- func RayJobStatus(job *rayv1.RayJob) rayv1.JobStatus
- func WriteToOutputDir(t Test, fileName string, fileType OutputType, data []byte)
- type Client
- type Option
- type OutputType
- type T
- type Test
Constants ¶
View Source
const ( RayVersion = "2.9.0" RayImage = "rayproject/ray:2.9.0" )
View Source
const ( // KuberayTestOutputDir is the testing output directory, to write output files into. KuberayTestOutputDir = "KUBERAY_TEST_OUTPUT_DIR" // KuberayTestRayVersion is the version of Ray to use for testing. KuberayTestRayVersion = "KUBERAY_TEST_RAY_VERSION" // KuberayTestRayImage is the Ray image to use for testing. KuberayTestRayImage = "KUBERAY_TEST_RAY_IMAGE" )
Variables ¶
View Source
var ( TestApplyOptions = metav1.ApplyOptions{FieldManager: "kuberay-test", Force: true} TestTimeoutShort = 1 * time.Minute TestTimeoutMedium = 2 * time.Minute TestTimeoutLong = 5 * time.Minute )
Functions ¶
func GetRayCluster ¶
func GetRayCluster(t Test, namespace, name string) *rayv1.RayCluster
func GetRayImage ¶
func GetRayImage() string
func GetRayJobId ¶
func GetRayVersion ¶
func GetRayVersion() string
func RayCluster ¶
func RayClusterOrError ¶
func RayClusterState ¶
func RayClusterState(cluster *rayv1.RayCluster) rayv1.ClusterState
func RayJobDeploymentStatus ¶
func RayJobDeploymentStatus(job *rayv1.RayJob) rayv1.JobDeploymentStatus
func RayJobReason ¶
func RayJobReason(job *rayv1.RayJob) rayv1.JobFailedReason
func WriteToOutputDir ¶
func WriteToOutputDir(t Test, fileName string, fileType OutputType, data []byte)
Types ¶
type Option ¶
type Option[T any] interface { // contains filtered or unexported methods }
func LabelSelector ¶
func LabelSelector(selector string) Option[*metav1.ListOptions]
type T ¶
func (*T) NewTestNamespace ¶
func (*T) StreamKubeRayOperatorLogs ¶
func (t *T) StreamKubeRayOperatorLogs()
Click to show internal directories.
Click to hide internal directories.