Documentation
¶
Index ¶
- func CreateJob(client *rancher.Client, clusterID, namespaceName string, ...) (*batchv1.Job, error)
- func DeleteJob(client *rancher.Client, clusterID string, job *batchv1.Job, waitForDelete bool) error
- func NewJobTemplate(namespaceName string, podTemplate corev1.PodTemplateSpec) batchv1.Job
- func VerifyCreateJob(client *rancher.Client, clusterID string) error
- func WaitForDeleteJob(client *rancher.Client, clusterID string, job *batchv1.Job) error
- func WatchAndWaitJobWrangler(client *rancher.Client, clusterID, namespaceName string, job *batchv1.Job) error
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 WaitForDeleteJob ¶
WaitForDeleteJob is a helper to wait for job to delete
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.