jobs

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCronJobFromJob

func GetCronJobFromJob(ctx context.Context, kc *kube.KubernetesClient, job batchv1.Job) (*batchv1beta1.CronJob, error)

GetCronJobFromJob returns the parent cronjob of the job.

func GetJob

func GetJob(ctx context.Context, kc *kube.KubernetesClient, namespace string, name string) (*batchv1.Job, error)

GetJob returns the job by namespace and name.

func GetPodsfromJob

func GetPodsfromJob(ctx context.Context, kc *kube.KubernetesClient, job batchv1.Job) ([]corev1.Pod, error)

GetPodsfromJob returns a list of Pods from a specific job.

Types

This section is empty.

Jump to

Keyboard shortcuts

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