Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectWorker ¶
func SelectWorker( ctx context.Context, k8sClient client.Client, workload *tfv1.TensorFusionWorkload, maxSkew int32, ) (*tfv1.WorkerStatus, error)
Types ¶
type WorkerGenerator ¶
type WorkerGenerator struct {
WorkerConfig *tfv1.WorkerConfig
}
func (*WorkerGenerator) AllocPort ¶
func (wg *WorkerGenerator) AllocPort() int
func (*WorkerGenerator) GenerateWorkerPod ¶
func (*WorkerGenerator) WorkerPort ¶
func (wg *WorkerGenerator) WorkerPort(pod *corev1.Pod) (int, error)
Click to show internal directories.
Click to hide internal directories.