testing

package
v0.6.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MPIJobWrapper

type MPIJobWrapper struct{ kubeflow.MPIJob }

MPIJobWrapper wraps a Job.

func MakeMPIJob

func MakeMPIJob(name, ns string) *MPIJobWrapper

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

func (*MPIJobWrapper) Obj

func (j *MPIJobWrapper) Obj() *kubeflow.MPIJob

Obj returns the inner Job.

func (*MPIJobWrapper) Parallelism

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

Parallelism updates job parallelism.

func (*MPIJobWrapper) PodAnnotation added in v0.5.0

func (j *MPIJobWrapper) PodAnnotation(replicaType kubeflow.MPIReplicaType, k, v string) *MPIJobWrapper

PodAnnotation sets annotation at the pod template level

func (*MPIJobWrapper) PodLabel added in v0.5.0

func (j *MPIJobWrapper) PodLabel(replicaType kubeflow.MPIReplicaType, k, v string) *MPIJobWrapper

PodLabel sets label at the pod template level

func (*MPIJobWrapper) PriorityClass

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

PriorityClass updates job priorityclass.

func (*MPIJobWrapper) Queue

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

Queue updates the queue name of the job.

func (*MPIJobWrapper) Request

Request adds a resource request to the default container.

func (*MPIJobWrapper) Suspend

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

Suspend updates the suspend status of the job.

func (*MPIJobWrapper) UID added in v0.3.2

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

UID updates the uid of the job.

func (*MPIJobWrapper) WorkloadPriorityClass added in v0.5.0

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

WorkloadPriorityClass updates job workloadpriorityclass.

Jump to

Keyboard shortcuts

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