testing

package
v0.6.0-devel Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 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) 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) 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) 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.

Jump to

Keyboard shortcuts

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