paddlejob

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 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) Clone added in v0.9.0

func (j *PaddleJobWrapper) Clone() *PaddleJobWrapper

Clone returns deep copy of the PaddleJobWrapper.

func (*PaddleJobWrapper) Image

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

Image updates images of the job.

func (*PaddleJobWrapper) Label added in v0.9.0

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

Label sets the label key and value

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) PaddleReplicaSpecs added in v0.9.0

func (j *PaddleJobWrapper) PaddleReplicaSpecs(replicaSpecs ...PaddleReplicaSpecRequirement) *PaddleJobWrapper

func (*PaddleJobWrapper) PaddleReplicaSpecsDefault added in v0.9.0

func (j *PaddleJobWrapper) PaddleReplicaSpecsDefault() *PaddleJobWrapper

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) StatusConditions added in v0.9.0

func (j *PaddleJobWrapper) StatusConditions(conditions ...kftraining.JobCondition) *PaddleJobWrapper

StatusConditions updates status conditions of the PaddleJob.

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.

type PaddleReplicaSpecRequirement added in v0.9.0

type PaddleReplicaSpecRequirement 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