Documentation ¶
Index ¶
- Constants
- func ExtractCurrentCondition(jobConditions []commonOp.JobCondition) (commonOp.JobCondition, error)
- func ExtractMPICurrentCondition(jobConditions []commonOp.JobCondition) (commonOp.JobCondition, error)
- func GetLogs(taskType string, name string, namespace string, workersCount int32, ...) ([]*core.TaskLog, error)
- func GetMPIPhaseInfo(currentCondition commonOp.JobCondition, occurredAt time.Time, ...) (pluginsCore.PhaseInfo, error)
- func GetPhaseInfo(currentCondition commonOp.JobCondition, occurredAt time.Time, ...) (pluginsCore.PhaseInfo, error)
- func OverrideDefaultContainerName(taskCtx pluginsCore.TaskExecutionContext, podSpec *v1.PodSpec, ...)
Constants ¶
View Source
const ( TensorflowTaskType = "tensorflow" MPITaskType = "mpi" PytorchTaskType = "pytorch" )
Variables ¶
This section is empty.
Functions ¶
func ExtractCurrentCondition ¶
func ExtractCurrentCondition(jobConditions []commonOp.JobCondition) (commonOp.JobCondition, error)
ExtractCurrentCondition will return the first job condition for tensorflow/pytorch
func ExtractMPICurrentCondition ¶ added in v0.7.1
func ExtractMPICurrentCondition(jobConditions []commonOp.JobCondition) (commonOp.JobCondition, error)
ExtractMPICurrentCondition will return the first job condition for MPI
func GetLogs ¶
func GetLogs(taskType string, name string, namespace string, workersCount int32, psReplicasCount int32, chiefReplicasCount int32) ([]*core.TaskLog, error)
GetLogs will return the logs for kubeflow job
func GetMPIPhaseInfo ¶ added in v0.7.1
func GetMPIPhaseInfo(currentCondition commonOp.JobCondition, occurredAt time.Time, taskPhaseInfo pluginsCore.TaskInfo) (pluginsCore.PhaseInfo, error)
GetMPIPhaseInfo will return the phase of MPI job
func GetPhaseInfo ¶
func GetPhaseInfo(currentCondition commonOp.JobCondition, occurredAt time.Time, taskPhaseInfo pluginsCore.TaskInfo) (pluginsCore.PhaseInfo, error)
GetPhaseInfo will return the phase of kubeflow job
func OverrideDefaultContainerName ¶
func OverrideDefaultContainerName(taskCtx pluginsCore.TaskExecutionContext, podSpec *v1.PodSpec, defaultContainerName string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.