mxjob

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FrameworkName = "kubeflow.org/mxjob"
)

Functions

func GetWorkloadNameForMXJob

func GetWorkloadNameForMXJob(jobName string) string

func SetupIndexes

func SetupIndexes(ctx context.Context, indexer client.FieldIndexer) error

func SetupMXJobWebhook

func SetupMXJobWebhook(mgr ctrl.Manager, opts ...jobframework.Option) error

SetupMXJobWebhook configures the webhook for kubeflow MXJob.

Types

type JobControl

type JobControl kftraining.MXJob

func (*JobControl) GVK

func (*JobControl) JobStatus

func (j *JobControl) JobStatus() *kftraining.JobStatus

func (*JobControl) Object

func (j *JobControl) Object() client.Object

func (*JobControl) OrderedReplicaTypes

func (j *JobControl) OrderedReplicaTypes() []kftraining.ReplicaType

func (*JobControl) ReplicaSpecs

func (j *JobControl) ReplicaSpecs() map[kftraining.ReplicaType]*kftraining.ReplicaSpec

func (*JobControl) RunPolicy

func (j *JobControl) RunPolicy() *kftraining.RunPolicy

type MXJobWebhook

type MXJobWebhook struct {
	// contains filtered or unexported fields
}

func (*MXJobWebhook) Default

func (w *MXJobWebhook) Default(ctx context.Context, obj runtime.Object) error

Default implements webhook.CustomDefaulter so a webhook will be registered for the type

func (*MXJobWebhook) ValidateCreate

func (w *MXJobWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type

func (*MXJobWebhook) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type

func (*MXJobWebhook) ValidateUpdate

func (w *MXJobWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type

Jump to

Keyboard shortcuts

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