cronjob

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 31 Imported by: 25

Documentation

Overview

Package cronjob contains the controller for CronJob objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsJobFinished added in v1.6.0

func IsJobFinished(j *batchv1.Job) bool

IsJobFinished returns whether or not a job has completed successfully or failed.

Types

type Controller added in v1.15.0

type Controller struct {
	// contains filtered or unexported fields
}

Controller is a controller for CronJobs.

func NewController added in v1.15.0

func NewController(kubeClient clientset.Interface) (*Controller, error)

NewController creates and initializes a new Controller.

func (*Controller) Run added in v1.15.0

func (jm *Controller) Run(stopCh <-chan struct{})

Run starts the main goroutine responsible for watching and syncing jobs.

type ControllerV2 added in v1.20.0

type ControllerV2 struct {
	// contains filtered or unexported fields
}

ControllerV2 is a controller for CronJobs. Refactored Cronjob controller that uses DelayingQueue and informers

func NewControllerV2 added in v1.20.0

func NewControllerV2(jobInformer batchv1informers.JobInformer, cronJobsInformer batchv1informers.CronJobInformer, kubeClient clientset.Interface) (*ControllerV2, error)

NewControllerV2 creates and initializes a new Controller.

func (*ControllerV2) Run added in v1.20.0

func (jm *ControllerV2) Run(workers int, stopCh <-chan struct{})

Run starts the main goroutine responsible for watching and syncing jobs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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