cronjobs

package
v0.0.0-...-351f9be Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

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