testing

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 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 MPIJobWrapper

type MPIJobWrapper struct{ kubeflow.MPIJob }

JobWrapper wraps a Job.

func MakeMPIJob

func MakeMPIJob(name, ns string) *MPIJobWrapper

MakeJob 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) OriginalNodeSelectorsAnnotation

func (j *MPIJobWrapper) OriginalNodeSelectorsAnnotation(content string) *MPIJobWrapper

OriginalNodeSelectorsAnnotation updates the original node selectors annotation

func (*MPIJobWrapper) Parallelism

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

Parallelism updates job parallelism.

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

Jump to

Keyboard shortcuts

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