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.
Click to show internal directories.
Click to hide internal directories.