Documentation ¶
Index ¶
- Variables
- func GetWorkloadNameForMPIJob(jobName string, jobUID types.UID) string
- func NewJob() jobframework.GenericJob
- func SetupIndexes(ctx context.Context, indexer client.FieldIndexer) error
- type MPIJob
- func (j *MPIJob) Finished() (message string, success, finished bool)
- func (j *MPIJob) GVK() schema.GroupVersionKind
- func (j *MPIJob) IsActive() bool
- func (j *MPIJob) IsSuspended() bool
- func (j *MPIJob) Object() client.Object
- func (j *MPIJob) PodSets() []kueue.PodSet
- func (j *MPIJob) PodsReady() bool
- func (j *MPIJob) PriorityClass() string
- func (j *MPIJob) RestorePodSetsInfo(podSetsInfo []podset.PodSetInfo) bool
- func (j *MPIJob) RunWithPodSetsInfo(podSetsInfo []podset.PodSetInfo) error
- func (j *MPIJob) Suspend()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FrameworkName = "kubeflow.org/mpijob" SetupMPIJobWebhook = jobframework.DefaultWebhookFactory(NewJob(), fromObject) )
View Source
var NewReconciler = jobframework.NewGenericReconcilerFactory(func() jobframework.GenericJob { return &MPIJob{} })
Functions ¶
func NewJob ¶ added in v0.8.2
func NewJob() jobframework.GenericJob
func SetupIndexes ¶
func SetupIndexes(ctx context.Context, indexer client.FieldIndexer) error
Types ¶
type MPIJob ¶
func (*MPIJob) GVK ¶ added in v0.5.0
func (j *MPIJob) GVK() schema.GroupVersionKind
func (*MPIJob) IsSuspended ¶
func (*MPIJob) PriorityClass ¶
PriorityClass calculates the priorityClass name needed for workload according to the following priorities:
- .spec.runPolicy.schedulingPolicy.priorityClass
- .spec.mpiReplicaSpecs[Launcher].template.spec.priorityClassName
- .spec.mpiReplicaSpecs[Worker].template.spec.priorityClassName
This function is inspired by an analogous one in mpi-controller: https://github.com/kubeflow/mpi-operator/blob/5946ef4157599a474ab82ff80e780d5c2546c9ee/pkg/controller/podgroup.go#L69-L72
func (*MPIJob) RestorePodSetsInfo ¶ added in v0.4.0
func (j *MPIJob) RestorePodSetsInfo(podSetsInfo []podset.PodSetInfo) bool
func (*MPIJob) RunWithPodSetsInfo ¶ added in v0.4.0
func (j *MPIJob) RunWithPodSetsInfo(podSetsInfo []podset.PodSetInfo) error
Click to show internal directories.
Click to hide internal directories.