testing

package
v0.10.0-devel Latest Latest
Warning

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

Go to latest
Published: Nov 5, 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 PyTorchJobWrapper

type PyTorchJobWrapper struct{ kftraining.PyTorchJob }

PyTorchJobWrapper wraps a Job.

func MakePyTorchJob

func MakePyTorchJob(name, ns string) *PyTorchJobWrapper

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

func (*PyTorchJobWrapper) Clone added in v0.9.0

Clone returns deep copy of the PyTorchJobWrapper.

func (*PyTorchJobWrapper) Image added in v0.9.0

func (j *PyTorchJobWrapper) Image(replicaType kftraining.ReplicaType, image string, args []string) *PyTorchJobWrapper

func (*PyTorchJobWrapper) Label added in v0.9.0

func (j *PyTorchJobWrapper) Label(key, value string) *PyTorchJobWrapper

Label sets the label key and value

func (*PyTorchJobWrapper) Obj

Obj returns the inner Job.

func (*PyTorchJobWrapper) Parallelism

func (j *PyTorchJobWrapper) Parallelism(p int32) *PyTorchJobWrapper

Parallelism updates job parallelism.

func (*PyTorchJobWrapper) PodAnnotation

func (j *PyTorchJobWrapper) PodAnnotation(replicaType kftraining.ReplicaType, k, v string) *PyTorchJobWrapper

PodAnnotation sets annotation at the pod template level

func (*PyTorchJobWrapper) PodLabel

func (j *PyTorchJobWrapper) PodLabel(replicaType kftraining.ReplicaType, k, v string) *PyTorchJobWrapper

PodLabel sets label at the pod template level

func (*PyTorchJobWrapper) PriorityClass

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

PriorityClass updates job priorityclass.

func (*PyTorchJobWrapper) PyTorchReplicaSpecs added in v0.9.0

func (j *PyTorchJobWrapper) PyTorchReplicaSpecs(replicaSpecs ...PyTorchReplicaSpecRequirement) *PyTorchJobWrapper

func (*PyTorchJobWrapper) PyTorchReplicaSpecsDefault added in v0.9.0

func (j *PyTorchJobWrapper) PyTorchReplicaSpecsDefault() *PyTorchJobWrapper

func (*PyTorchJobWrapper) Queue

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

Queue updates the queue name of the job.

func (*PyTorchJobWrapper) Request

Request adds a resource request to the default container.

func (*PyTorchJobWrapper) StatusConditions added in v0.9.0

Condition adds a condition

func (*PyTorchJobWrapper) Suspend

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

Suspend updates the suspend status of the job.

func (*PyTorchJobWrapper) UID

UID updates the uid of the job.

func (*PyTorchJobWrapper) WorkloadPriorityClass

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

WorkloadPriorityClass updates job workloadpriorityclass.

type PyTorchReplicaSpecRequirement added in v0.9.0

type PyTorchReplicaSpecRequirement struct {
	ReplicaType   kftraining.ReplicaType
	Name          string
	ReplicaCount  int32
	Annotations   map[string]string
	RestartPolicy kftraining.RestartPolicy
}

Jump to

Keyboard shortcuts

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