testing

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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 MPIJobReplicaSpecRequirement added in v0.9.0

type MPIJobReplicaSpecRequirement struct {
	ReplicaType   kfmpi.MPIReplicaType
	ReplicaCount  int32
	Annotations   map[string]string
	RestartPolicy corev1.RestartPolicy
}

type MPIJobWrapper

type MPIJobWrapper struct{ kfmpi.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) Clone added in v0.9.0

func (j *MPIJobWrapper) Clone() *MPIJobWrapper

Clone returns deep copy of the MPIJobWrapper.

func (*MPIJobWrapper) Generation added in v0.7.0

func (j *MPIJobWrapper) Generation(num int64) *MPIJobWrapper

Generation sets the generation of the job.

func (*MPIJobWrapper) GenericLauncherAndWorker added in v0.9.0

func (j *MPIJobWrapper) GenericLauncherAndWorker() *MPIJobWrapper

func (*MPIJobWrapper) Image added in v0.9.0

func (j *MPIJobWrapper) Image(replicaType kfmpi.MPIReplicaType, image string, args []string) *MPIJobWrapper

func (*MPIJobWrapper) Label added in v0.9.0

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

Label sets the label key and value

func (*MPIJobWrapper) MPIJobReplicaSpecs added in v0.9.0

func (j *MPIJobWrapper) MPIJobReplicaSpecs(replicaSpecs ...MPIJobReplicaSpecRequirement) *MPIJobWrapper

func (*MPIJobWrapper) ManagedBy added in v0.9.0

func (j *MPIJobWrapper) ManagedBy(c string) *MPIJobWrapper

ManagedBy adds a managedby.

func (*MPIJobWrapper) Obj

func (j *MPIJobWrapper) Obj() *kfmpi.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 kfmpi.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 kfmpi.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

func (j *MPIJobWrapper) Request(replicaType kfmpi.MPIReplicaType, r corev1.ResourceName, v string) *MPIJobWrapper

Request adds a resource request to the default container.

func (*MPIJobWrapper) StatusConditions added in v0.9.0

func (j *MPIJobWrapper) StatusConditions(c kfmpi.JobCondition) *MPIJobWrapper

StatusConditions adds a condition

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