tfjob

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

Functions

func GetWorkloadNameForTFJob

func GetWorkloadNameForTFJob(jobName string) string

func SetupIndexes

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

func SetupTFJobWebhook

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

SetupTFJobWebhook configures the webhook for kubeflow TFJob.

Types

type JobControl

type JobControl kftraining.TFJob

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 TFJobWebhook

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

func (*TFJobWebhook) Default

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

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

func (*TFJobWebhook) ValidateCreate

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

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

func (*TFJobWebhook) ValidateDelete

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

func (*TFJobWebhook) ValidateUpdate

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