Documentation ¶
Index ¶
- func ComposeSingleJobName(batchName, batchJobName string) string
- func GetJobStatusFromRadixBatchJobsStatus(batchName, jobName string, jobStatus modelsv2.RadixBatchJobStatus) modelsv1.JobStatus
- func GetLabelSelectorForBatches(componentName string) string
- func GetPodsToJobNameMap(pods []corev1.Pod) map[string][]corev1.Pod
- func ParseBatchAndJobNameFromScheduledJobName(scheduleJobName string) (batchName, batchJobName string, ok bool)
- type Handler
- func (handler *Handler) CreateJob(namespace string, job *batchv1.Job) (*batchv1.Job, error)
- 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 ComposeSingleJobName ¶
ComposeSingleJobName from RadixBatchJob
func GetJobStatusFromRadixBatchJobsStatus ¶
func GetJobStatusFromRadixBatchJobsStatus(batchName, jobName 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 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 ¶
type Handler struct { Kube *kube.Kube Env *models.Env KubeClient kubernetes.Interface RadixClient versioned.Interface HandlerApiV2 apiv2.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
Click to show internal directories.
Click to hide internal directories.