job

package
v0.0.0-...-554fa10 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJob

func CreateJob(client *rancher.Client, clusterID, namespaceName string, podTemplate corev1.PodTemplateSpec, watchJob bool) (*batchv1.Job, error)

CreateJob is a helper to create a job in a namespace using wrangler context

func DeleteJob

func DeleteJob(client *rancher.Client, clusterID string, job *batchv1.Job, waitForDelete bool) error

DeleteJob is a helper to delete a job in a namespace using wrangler context

func NewJobTemplate

func NewJobTemplate(namespaceName string, podTemplate corev1.PodTemplateSpec) batchv1.Job

NewJobTemplate is a constructor that creates the template for jobs

func VerifyCreateJob

func VerifyCreateJob(client *rancher.Client, clusterID string) error

func WaitForDeleteJob

func WaitForDeleteJob(client *rancher.Client, clusterID string, job *batchv1.Job) error

WaitForDeleteJob is a helper to wait for job to delete

func WatchAndWaitJobWrangler

func WatchAndWaitJobWrangler(client *rancher.Client, clusterID, namespaceName string, job *batchv1.Job) error

WatchAndWaitJobWrangler is a helper to watch and wait for job to be active using wrangler context

Types

This section is empty.

Jump to

Keyboard shortcuts

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