testing

package
v0.10.0-devel Latest Latest
Warning

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

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

type XGBReplicaSpecRequirement struct {
	ReplicaType   kftraining.ReplicaType
	Name          string
	ReplicaCount  int32
	Annotations   map[string]string
	RestartPolicy kftraining.RestartPolicy
}

type XGBoostJobWrapper

type XGBoostJobWrapper struct{ kftraining.XGBoostJob }

XGBoostJobWrapper wraps a Job.

func MakeXGBoostJob

func MakeXGBoostJob(name, ns string) *XGBoostJobWrapper

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

func (*XGBoostJobWrapper) Active

Active updates the replicaStatus for Active of job.

func (*XGBoostJobWrapper) Args

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

Args updates args of the job.

func (*XGBoostJobWrapper) Clone added in v0.9.0

Clone returns deep copy of the XGBoostJobWrapper.

func (*XGBoostJobWrapper) Image

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

Image updates images of the job.

func (*XGBoostJobWrapper) Label added in v0.9.0

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

Label sets the label key and value

func (*XGBoostJobWrapper) NodeSelector

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

NodeSelector updates the nodeSelector of job.

func (*XGBoostJobWrapper) Obj

Obj returns the inner Job.

func (*XGBoostJobWrapper) Parallelism

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

Parallelism updates job parallelism.

func (*XGBoostJobWrapper) PriorityClass

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

PriorityClass updates job priorityclass.

func (*XGBoostJobWrapper) Queue

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

Queue updates the queue name of the job.

func (*XGBoostJobWrapper) Request

Request updates a resource request to the default container.

func (*XGBoostJobWrapper) StatusConditions added in v0.9.0

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

StatusConditions updates status conditions of the XGBoostJob.

func (*XGBoostJobWrapper) Suspend

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

Suspend updates the suspend status of the job.

func (*XGBoostJobWrapper) UID

UID updates the uid of the job.

func (*XGBoostJobWrapper) XGBReplicaSpecs added in v0.9.0

func (j *XGBoostJobWrapper) XGBReplicaSpecs(replicaSpecs ...XGBReplicaSpecRequirement) *XGBoostJobWrapper

func (*XGBoostJobWrapper) XGBReplicaSpecsDefault added in v0.9.0

func (j *XGBoostJobWrapper) XGBReplicaSpecsDefault() *XGBoostJobWrapper

Jump to

Keyboard shortcuts

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