Documentation ¶
Index ¶
- Constants
- Variables
- func CheckCondition(testJob *testjobv1.TestJob, condition apiv1.JobConditionType, reason string) bool
- func GenLabels(jobName string) map[string]string
- func GenOwnerReference(testjob *testjobv1.TestJob) *metav1.OwnerReference
- func GetKey(testJob *testjobv1.TestJob, t *testing.T) string
- func NewBasePod(name string, testJob *testjobv1.TestJob, t *testing.T) *v1.Pod
- func NewBaseService(name string, testJob *testjobv1.TestJob, t *testing.T) *v1.Service
- func NewPod(testJob *testjobv1.TestJob, typ string, index int, t *testing.T) *v1.Pod
- func NewPodList(count int32, status v1.PodPhase, testJob *testjobv1.TestJob, typ string, ...) []*v1.Pod
- func NewService(testJob *testjobv1.TestJob, typ string, index int, t *testing.T) *v1.Service
- func NewServiceList(count int32, testJob *testjobv1.TestJob, typ string, t *testing.T) []*v1.Service
- func NewTestJob(worker int) *testjobv1.TestJob
- func NewTestReplicaSpecTemplate() v1.PodTemplateSpec
- func SetPodsStatuses(podIndexer cache.Indexer, testJob *testjobv1.TestJob, typ string, ...)
- func SetServices(serviceIndexer cache.Indexer, testJob *testjobv1.TestJob, typ string, ...)
- func SetTestJobCompletionTime(testJob *testjobv1.TestJob)
Constants ¶
View Source
const ( TestImageName = "test-image-for-kubeflow-pkg:latest" TestJobName = "test-job" LabelWorker = "worker" SleepInterval = 500 * time.Millisecond ThreadCount = 1 )
View Source
const ( LabelGroupName = "group-name" LabelTestJobName = "test-job-name" )
Variables ¶
View Source
var ( // KeyFunc is the short name to DeletionHandlingMetaNamespaceKeyFunc. // IndexerInformer uses a delta queue, therefore for deletes we have to use this // key function but it should be just fine for non delete events. KeyFunc = cache.DeletionHandlingMetaNamespaceKeyFunc TestGroupName = testjobv1.GroupName )
View Source
var (
AlwaysReady = func() bool { return true }
)
Functions ¶
func CheckCondition ¶
func GenOwnerReference ¶
func GenOwnerReference(testjob *testjobv1.TestJob) *metav1.OwnerReference
func NewBaseService ¶
func NewPodList ¶
func NewPodList(count int32, status v1.PodPhase, testJob *testjobv1.TestJob, typ string, start int32, t *testing.T) []*v1.Pod
create count pods with the given phase for the given testjob
func NewService ¶
func NewServiceList ¶
func NewServiceList(count int32, testJob *testjobv1.TestJob, typ string, t *testing.T) []*v1.Service
NewServiceList creates count pods with the given phase for the given Job
func NewTestJob ¶
func NewTestReplicaSpecTemplate ¶
func NewTestReplicaSpecTemplate() v1.PodTemplateSpec
func SetPodsStatuses ¶
func SetServices ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.