v1

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyJob added in v1.8.0

func CopyJob(ctx context.Context, handlerApiV2 apiv2.Handler, jobName, deploymentName string) (*modelsv2.RadixBatch, error)

CopyJob Copy a job

func GetBatchJob added in v1.7.6

func GetBatchJob(ctx context.Context, handlerApiV2 apiv2.Handler, batchName, jobName string) (*modelsv1.JobStatus, error)

GetBatchJob Get batch job

func GetJobStatusFromRadixBatchJobsStatus

func GetJobStatusFromRadixBatchJobsStatus(batchName string, jobStatus modelsv2.RadixBatchJobStatus) modelsv1.JobStatus

GetJobStatusFromRadixBatchJobsStatus Get Job status from RadixBatchJob

func GetJobStatusFromRadixBatchJobsStatuses added in v1.7.6

func GetJobStatusFromRadixBatchJobsStatuses(radixBatches ...modelsv2.RadixBatch) []modelsv1.JobStatus

GetJobStatusFromRadixBatchJobsStatuses Get JobStatuses from RadixBatch job statuses v2

func GetLabelSelectorForAllRadixBatchesPods added in v1.8.0

func GetLabelSelectorForAllRadixBatchesPods(componentName string) string

GetLabelSelectorForAllRadixBatchesPods Gets a label selector for all radix batches pods

func GetLabelSelectorForRadixBatchesPods added in v1.8.0

func GetLabelSelectorForRadixBatchesPods(componentName, batchName string) string

GetLabelSelectorForRadixBatchesPods Gets a label selector for a radix batch pods

func ParseBatchAndJobNameFromScheduledJobName

func ParseBatchAndJobNameFromScheduledJobName(scheduleJobName string) (batchName, batchJobName string, ok bool)

ParseBatchAndJobNameFromScheduledJobName Decompose V2 batch name and jobs name from V1 job-name

func SetBatchJobEventMessageToBatchJobStatus added in v1.8.0

func SetBatchJobEventMessageToBatchJobStatus(jobStatus *modelsv1.JobStatus, batchJobPodsMap map[string]corev1.Pod, eventMessageForPods map[string]string)

SetBatchJobEventMessageToBatchJobStatus sets the event message for the batch job status

func StopJob added in v1.7.5

func StopJob(ctx context.Context, handlerApiV2 apiv2.Handler, jobName string) error

StopJob Stop a job

Types

type Handler

type Handler struct {
	Kube         *kube.Kube
	Env          *models.Env
	HandlerApiV2 apiv2.Handler
}

func (*Handler) GetLastEventMessageForPods added in v1.8.0

func (handler *Handler) GetLastEventMessageForPods(ctx context.Context, pods []corev1.Pod) (map[string]string, error)

GetLastEventMessageForPods returns the last event message for pods

func (*Handler) GetPodsForLabelSelector

func (handler *Handler) GetPodsForLabelSelector(ctx context.Context, labelSelector string) ([]corev1.Pod, error)

func (*Handler) GetRadixBatchJobMessagesAndPodMaps added in v1.8.0

func (handler *Handler) GetRadixBatchJobMessagesAndPodMaps(ctx context.Context, selectorForRadixBatchPods string) (map[string]string, map[string]corev1.Pod, error)

GetRadixBatchJobMessagesAndPodMaps returns the event messages for the batch job statuses

Directories

Path Synopsis
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
controllers
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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