job_helper

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteJob

func DeleteJob(ctx context.Context, cli client.Client, jobNamespace string, jobName string) error

func GetLatestPod

func GetLatestPod(ctx context.Context, cli client.Client, jobNamespace string, jobName string) (*corev1.Pod, error)

func GetTerminationLog

func GetTerminationLog(ctx context.Context, cli client.Client, jobNamespace string, jobName string) string

func HasJobFinished

func HasJobFinished(ctx context.Context, cli client.Client, job *batchv1.Job) bool

Types

type JobStatus

type JobStatus string
const (
	JobStatusUnknown JobStatus = "job-status-unknown"
	JobStatusRunning JobStatus = "job-status-running"
	JobStatusFailed  JobStatus = "job-status-failed"
	JobStatusSuccess JobStatus = "job-status-success"
)

Jump to

Keyboard shortcuts

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