jax

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVarGenerator

type EnvVarGenerator interface {
	Generate(job *kubeflowv1.JAXJob) ([]corev1.EnvVar, error)
}

type JAXJobReconciler

type JAXJobReconciler struct {
	common.JobController
	// contains filtered or unexported fields
}

JAXJobReconciler reconciles a JAXJob object

func NewReconciler

func NewReconciler(mgr manager.Manager, gangSchedulingSetupFunc common.GangSchedulingSetupFunc) *JAXJobReconciler

NewReconciler creates a JAXJob Reconciler

func (*JAXJobReconciler) ControllerName

func (r *JAXJobReconciler) ControllerName() string

func (*JAXJobReconciler) DeleteJob

func (r *JAXJobReconciler) DeleteJob(job interface{}) error

func (*JAXJobReconciler) GenLabelSelector

func (r *JAXJobReconciler) GenLabelSelector(jobName string,
	rtype kubeflowv1.ReplicaType) *metav1.LabelSelector

func (*JAXJobReconciler) GetAPIGroupVersion

func (r *JAXJobReconciler) GetAPIGroupVersion() schema.GroupVersion

func (*JAXJobReconciler) GetAPIGroupVersionKind

func (r *JAXJobReconciler) GetAPIGroupVersionKind() schema.GroupVersionKind

func (*JAXJobReconciler) GetDefaultContainerName

func (r *JAXJobReconciler) GetDefaultContainerName() string

func (*JAXJobReconciler) GetDefaultContainerPortName

func (r *JAXJobReconciler) GetDefaultContainerPortName() string

func (*JAXJobReconciler) GetFrameworkName

func (r *JAXJobReconciler) GetFrameworkName() string

func (*JAXJobReconciler) GetGroupNameLabelValue

func (r *JAXJobReconciler) GetGroupNameLabelValue() string

func (*JAXJobReconciler) GetJobFromAPIClient

func (r *JAXJobReconciler) GetJobFromAPIClient(namespace, name string) (metav1.Object, error)

func (*JAXJobReconciler) GetJobFromInformerCache

func (r *JAXJobReconciler) GetJobFromInformerCache(namespace, name string) (metav1.Object, error)

func (*JAXJobReconciler) GetPodsForJob

func (r *JAXJobReconciler) GetPodsForJob(obj interface{}) ([]*corev1.Pod, error)

func (*JAXJobReconciler) GetServicesForJob

func (r *JAXJobReconciler) GetServicesForJob(obj interface{}) ([]*corev1.Service, error)

func (*JAXJobReconciler) IsMasterRole

func (r *JAXJobReconciler) IsMasterRole(replicas map[kubeflowv1.ReplicaType]*kubeflowv1.ReplicaSpec,
	rtype kubeflowv1.ReplicaType, index int) bool

func (*JAXJobReconciler) Reconcile

func (r *JAXJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. the JAXJob object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*JAXJobReconciler) SetClusterSpec

func (r *JAXJobReconciler) SetClusterSpec(job interface{}, podTemplate *corev1.PodTemplateSpec, rtype, index string) error

SetClusterSpec sets the cluster spec and init container for the pod

func (*JAXJobReconciler) SetupWithManager

func (r *JAXJobReconciler) SetupWithManager(mgr ctrl.Manager, controllerThreads int) error

SetupWithManager sets up the controller with the Manager.

func (*JAXJobReconciler) UpdateJobStatus

func (r *JAXJobReconciler) UpdateJobStatus(job interface{},
	replicas map[kubeflowv1.ReplicaType]*kubeflowv1.ReplicaSpec,
	jobStatus *kubeflowv1.JobStatus) error

UpdateJobStatus updates the job status and job conditions

func (*JAXJobReconciler) UpdateJobStatusInApiServer

func (r *JAXJobReconciler) UpdateJobStatusInApiServer(job interface{}, jobStatus *kubeflowv1.JobStatus) error

UpdateJobStatusInApiServer updates the job status in to cluster.

Jump to

Keyboard shortcuts

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