Documentation ¶
Index ¶
- Variables
- func GetWorkloadNameForJobSet(jobSetName string) string
- func SetupIndexes(ctx context.Context, indexer client.FieldIndexer) error
- func SetupJobSetWebhook(mgr ctrl.Manager, opts ...jobframework.Option) error
- type JobSet
- func (j *JobSet) Finished() (metav1.Condition, bool)
- func (j *JobSet) GetGVK() schema.GroupVersionKind
- func (j *JobSet) IsActive() bool
- func (j *JobSet) IsSuspended() bool
- func (j *JobSet) Object() client.Object
- func (j *JobSet) PodSets() []kueue.PodSet
- func (j *JobSet) PodsReady() bool
- func (j *JobSet) ReclaimablePods() []kueue.ReclaimablePod
- func (j *JobSet) RestorePodSetsInfo(podSetInfos []jobframework.PodSetInfo)
- func (j *JobSet) RunWithPodSetsInfo(podSetInfos []jobframework.PodSetInfo)
- func (j *JobSet) Suspend()
- type JobSetWebhook
- func (w *JobSetWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *JobSetWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *JobSetWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *JobSetWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FrameworkName = "jobset.x-k8s.io/jobset"
)
View Source
var NewReconciler = jobframework.NewGenericReconciler(func() jobframework.GenericJob { return &JobSet{} }, nil)
Functions ¶
func SetupIndexes ¶
func SetupIndexes(ctx context.Context, indexer client.FieldIndexer) error
func SetupJobSetWebhook ¶
func SetupJobSetWebhook(mgr ctrl.Manager, opts ...jobframework.Option) error
SetupJobSetWebhook configures the webhook for kubeflow JobSet.
Types ¶
type JobSet ¶
func (*JobSet) GetGVK ¶
func (j *JobSet) GetGVK() schema.GroupVersionKind
func (*JobSet) IsSuspended ¶
func (*JobSet) ReclaimablePods ¶
func (j *JobSet) ReclaimablePods() []kueue.ReclaimablePod
func (*JobSet) RestorePodSetsInfo ¶
func (j *JobSet) RestorePodSetsInfo(podSetInfos []jobframework.PodSetInfo)
func (*JobSet) RunWithPodSetsInfo ¶
func (j *JobSet) RunWithPodSetsInfo(podSetInfos []jobframework.PodSetInfo)
type JobSetWebhook ¶
type JobSetWebhook struct {
// contains filtered or unexported fields
}
func (*JobSetWebhook) Default ¶
Default implements webhook.CustomDefaulter so a webhook will be registered for the type
func (*JobSetWebhook) ValidateCreate ¶
func (w *JobSetWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*JobSetWebhook) ValidateDelete ¶
func (w *JobSetWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*JobSetWebhook) ValidateUpdate ¶
func (w *JobSetWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type
Click to show internal directories.
Click to hide internal directories.