Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectWorker ¶
func SelectWorker(ctx context.Context, k8sClient client.Client, workloadName string, workerStatuses []tfv1.WorkerStatus) (*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.