testing

package
v0.7.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TFJobWrapper

type TFJobWrapper struct{ kftraining.TFJob }

TFJobWrapper wraps a Job.

func MakeTFJob

func MakeTFJob(name, ns string) *TFJobWrapper

MakeTFJob creates a wrapper for a suspended job with a single container and parallelism=1.

func (*TFJobWrapper) Obj

func (j *TFJobWrapper) Obj() *kftraining.TFJob

Obj returns the inner Job.

func (*TFJobWrapper) Parallelism

func (j *TFJobWrapper) Parallelism(workerParallelism, psParallelism int32) *TFJobWrapper

Parallelism updates job parallelism.

func (*TFJobWrapper) PriorityClass

func (j *TFJobWrapper) PriorityClass(pc string) *TFJobWrapper

PriorityClass updates job priorityclass.

func (*TFJobWrapper) Queue

func (j *TFJobWrapper) Queue(queue string) *TFJobWrapper

Queue updates the queue name of the job.

func (*TFJobWrapper) Request

func (j *TFJobWrapper) Request(replicaType kftraining.ReplicaType, r corev1.ResourceName, v string) *TFJobWrapper

Request adds a resource request to the default container.

func (*TFJobWrapper) Suspend

func (j *TFJobWrapper) Suspend(s bool) *TFJobWrapper

Suspend updates the suspend status of the job.

func (*TFJobWrapper) UID

func (j *TFJobWrapper) UID(uid string) *TFJobWrapper

UID updates the uid of the job.

func (*TFJobWrapper) WorkloadPriorityClass

func (j *TFJobWrapper) WorkloadPriorityClass(wpc string) *TFJobWrapper

WorkloadPriorityClass updates job workloadpriorityclass.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL