paddlejob

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 PaddleJobWrapper

type PaddleJobWrapper struct{ kftraining.PaddleJob }

PaddleJobWrapper wraps a Job.

func MakePaddleJob

func MakePaddleJob(name, ns string) *PaddleJobWrapper

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

func (*PaddleJobWrapper) Active

Active updates the replicaStatus for Active of job.

func (*PaddleJobWrapper) Args

func (j *PaddleJobWrapper) Args(args []string) *PaddleJobWrapper

Args updates args of the job.

func (*PaddleJobWrapper) Image

func (j *PaddleJobWrapper) Image(image string) *PaddleJobWrapper

Image updates images of the job.

func (*PaddleJobWrapper) NodeSelector

func (j *PaddleJobWrapper) NodeSelector(k, v string) *PaddleJobWrapper

NodeSelector updates the nodeSelector of job.

func (*PaddleJobWrapper) Obj

Obj returns the inner Job.

func (*PaddleJobWrapper) Parallelism

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

Parallelism updates job parallelism.

func (*PaddleJobWrapper) PriorityClass

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

PriorityClass updates job priorityclass.

func (*PaddleJobWrapper) Queue

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

Queue updates the queue name of the job.

func (*PaddleJobWrapper) Request

Request adds a resource request to the default container.

func (*PaddleJobWrapper) Suspend

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

Suspend updates the suspend status of the job.

func (*PaddleJobWrapper) UID

UID updates the uid of the job.

Jump to

Keyboard shortcuts

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