xgboostjob

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/xgboostjob"
)

Functions

func GetWorkloadNameForXGBoostJob

func GetWorkloadNameForXGBoostJob(jobName string) string

func SetupIndexes

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

func SetupXGBoostJobWebhook

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

Types

type JobControl

type JobControl kftraining.XGBoostJob

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 XGBoostJobWebhook

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

func (*XGBoostJobWebhook) Default

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

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

func (*XGBoostJobWebhook) ValidateCreate

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

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

func (*XGBoostJobWebhook) ValidateDelete

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

func (*XGBoostJobWebhook) ValidateUpdate

func (w *XGBoostJobWebhook) 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