Documentation
¶
Index ¶
- Constants
- Variables
- func AppWrapper(t Test, namespace *corev1.Namespace, name string) func(g gomega.Gomega) *mcadv1beta1.AppWrapper
- func AppWrapperState(aw *mcadv1beta1.AppWrapper) mcadv1beta1.AppWrapperState
- func ConditionStatus[T conditionType](conditionType T) func(any) corev1.ConditionStatus
- func GetCodeFlareSDKVersion() string
- func GetJob(t Test, namespace, name string) *batchv1.Job
- func GetPodLogs(t Test, pod *corev1.Pod, options corev1.PodLogOptions) []byte
- func GetPods(t Test, namespace string, options metav1.ListOptions) []corev1.Pod
- func GetPyTorchImage() string
- func GetRayImage() string
- func GetRayJob(t Test, namespace, name string) *rayv1alpha1.RayJob
- func GetRayJobLogs(t Test, namespace, name string) []byte
- func GetRayVersion() string
- func IsOpenShift(test Test) bool
- func Job(t Test, namespace, name string) func(g gomega.Gomega) *batchv1.Job
- func Ptr[T any](v T) *T
- func Raw(t Test, obj runtime.Object) runtime.RawExtension
- func RayJob(t Test, namespace, name string) func(g gomega.Gomega) *rayv1alpha1.RayJob
- func RayJobStatus(job *rayv1alpha1.RayJob) rayv1alpha1.JobStatus
- func WriteJobLogs(t Test, namespace, name string)
- func WriteRayJobLogs(t Test, namespace, name string)
- func WriteToOutputDir(t Test, fileName string, fileType OutputType, data []byte)
- type Client
- type Option
- type OutputType
- type T
- type Test
Constants ¶
View Source
const ( CodeFlareTestSdkVersion = "CODEFLARE_TEST_SDK_VERSION" CodeFlareTestRayVersion = "CODEFLARE_TEST_RAY_VERSION" CodeFlareTestRayImage = "CODEFLARE_TEST_RAY_IMAGE" CodeFlareTestPyTorchImage = "CODEFLARE_TEST_PYTORCH_IMAGE" CodeFlareTestOutputDir = "CODEFLARE_TEST_OUTPUT_DIR" )
View Source
const ( CodeFlareSDKVersion = "0.4.4" RayVersion = "2.5.0" RayImage = "rayproject/ray:2.5.0" )
View Source
const RayJobDefaultClusterSelectorKey = "ray.io/cluster"
Variables ¶
View Source
var ( TestTimeoutShort = 1 * time.Minute TestTimeoutMedium = 2 * time.Minute TestTimeoutLong = 5 * time.Minute ApplyOptions = metav1.ApplyOptions{FieldManager: "codeflare-test", Force: true} )
Functions ¶
func AppWrapper ¶
func AppWrapper(t Test, namespace *corev1.Namespace, name string) func(g gomega.Gomega) *mcadv1beta1.AppWrapper
func AppWrapperState ¶
func AppWrapperState(aw *mcadv1beta1.AppWrapper) mcadv1beta1.AppWrapperState
func ConditionStatus ¶
func ConditionStatus[T conditionType](conditionType T) func(any) corev1.ConditionStatus
func GetCodeFlareSDKVersion ¶
func GetCodeFlareSDKVersion() string
func GetPodLogs ¶
func GetPyTorchImage ¶
func GetPyTorchImage() string
func GetRayImage ¶
func GetRayImage() string
func GetRayJobLogs ¶
func GetRayVersion ¶
func GetRayVersion() string
func IsOpenShift ¶
func RayJobStatus ¶
func RayJobStatus(job *rayv1alpha1.RayJob) rayv1alpha1.JobStatus
func WriteJobLogs ¶
func WriteRayJobLogs ¶
func WriteToOutputDir ¶
func WriteToOutputDir(t Test, fileName string, fileType OutputType, data []byte)
Types ¶
type Client ¶
type Client interface { Core() kubernetes.Interface CodeFlare() codeflareclient.Interface MCAD() mcadclient.Interface Ray() rayclient.Interface }
type T ¶
func (*T) NewTestNamespace ¶
Click to show internal directories.
Click to hide internal directories.