Documentation ¶
Index ¶
- func GetBatchJobStatusFromRadixBatchJobsStatuses(radixBatches ...modelsv2.RadixBatch) []modelsv1.JobStatus
- func GetJobStatusFromRadixBatchJobsStatus(batchName string, jobStatus modelsv2.RadixBatchJobStatus) modelsv1.JobStatus
- func GetLabelSelectorForBatches(componentName string) string
- func GetPodsToJobNameMap(pods []corev1.Pod) map[string][]corev1.Pod
- func GetSingleJobStatusFromRadixBatchJobsStatuses(radixBatches ...modelsv2.RadixBatch) []modelsv1.JobStatus
- func ParseBatchAndJobNameFromScheduledJobName(scheduleJobName string) (batchName, batchJobName string, ok bool)
- func StopJob(handlerApiV2 apiv2.Handler, jobName string) error
- type Handler
- func (handler *Handler) DeleteSecret(secret *corev1.Secret) error
- func (handler *Handler) DeleteService(service *corev1.Service) error
- func (handler *Handler) GetBatch(batchName string) (*batchv1.Job, error)
- func (handler *Handler) GetPodsForLabelSelector(labelSelector string) ([]corev1.Pod, error)
- func (handler *Handler) GetSecretsForJob(jobName string) (*corev1.SecretList, error)
- func (handler *Handler) GetServiceForJob(jobName string) (*corev1.ServiceList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBatchJobStatusFromRadixBatchJobsStatuses ¶ added in v1.7.5
func GetBatchJobStatusFromRadixBatchJobsStatuses(radixBatches ...modelsv2.RadixBatch) []modelsv1.JobStatus
GetBatchJobStatusFromRadixBatchJobsStatuses Get JobStatuses from RadixBatch job statuses v2 for batch jobs
func GetJobStatusFromRadixBatchJobsStatus ¶
func GetJobStatusFromRadixBatchJobsStatus(batchName string, jobStatus modelsv2.RadixBatchJobStatus) modelsv1.JobStatus
GetJobStatusFromRadixBatchJobsStatus Get Job status from RadixBatchJob
func GetLabelSelectorForBatches ¶
GetLabelSelectorForBatches Gets a label selector for a batch scheduler job
func GetPodsToJobNameMap ¶
GetPodsToJobNameMap Gets a map of pods to K8sJobNameLabel label as keys
func GetSingleJobStatusFromRadixBatchJobsStatuses ¶ added in v1.7.5
func GetSingleJobStatusFromRadixBatchJobsStatuses(radixBatches ...modelsv2.RadixBatch) []modelsv1.JobStatus
GetSingleJobStatusFromRadixBatchJobsStatuses Get JobStatuses from RadixBatch job statuses v2 for single jobs
func ParseBatchAndJobNameFromScheduledJobName ¶
func ParseBatchAndJobNameFromScheduledJobName(scheduleJobName string) (batchName, batchJobName string, ok bool)
ParseBatchAndJobNameFromScheduledJobName Decompose V2 batch name and jobs name from V1 job-name
Types ¶
type Handler ¶
func (*Handler) DeleteSecret ¶
DeleteSecret Delete the service for the job
func (*Handler) DeleteService ¶
DeleteService Deletes a service
func (*Handler) GetPodsForLabelSelector ¶
func (*Handler) GetSecretsForJob ¶
func (handler *Handler) GetSecretsForJob(jobName string) (*corev1.SecretList, error)
GetSecretsForJob Get secrets for the job
func (*Handler) GetServiceForJob ¶
func (handler *Handler) GetServiceForJob(jobName string) (*corev1.ServiceList, error)
GetServiceForJob Get the service for the job