Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CronJobGroupVersionResource = schema.GroupVersionResource{
Group: "batch",
Version: "v1beta1",
Resource: "cronjobs",
}
CronJobGroupVersionResource is the required Group Version Resource for accessing cron jobs in a cluster, using the dynamic client.
Functions ¶
func CreateCronJob ¶
func CreateCronJob(client *rancher.Client, clusterName, cronJobName, namespace, schedule string, template corev1.PodTemplateSpec) (*v1beta1.CronJob, error)
CreateCronJob is a helper function that uses the dynamic client to create a cronjob on a namespace for a specific cluster. It registers a delete fuction a wait.WatchWait to ensure the cronjob is deleted cleanly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.