jobs

package
v0.0.0-...-2bcb20d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JobGroupVersionResource = schema.GroupVersionResource{
	Group:    "batch",
	Version:  "v1",
	Resource: "jobs",
}

JobGroupVersionResource is the required Group Version Resource for accessing jobs in a cluster, using the dynamic client.

Functions

func CreateJob

func CreateJob(client *rancher.Client, clusterName, jobName, namespace string, template corev1.PodTemplateSpec) (*batchv1.Job, error)

CreateJob is a helper function that uses the dynamic client to create a batch job on a namespace for a specific cluster. It registers a delete fuction a wait.WatchWait to ensure the job is deleted cleanly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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