package cronjob
import "k8s.io/kubernetes/pkg/controller/cronjob"
Package cronjob contains the controller for CronJob objects.
Index ¶
- func IsJobFinished(j *batchv1.Job) bool
- type Controller
- func NewController(kubeClient clientset.Interface) (*Controller, error)
- func (jm *Controller) Run(stopCh <-chan struct{})
- type ControllerV2
Functions ¶
func IsJobFinished ¶
IsJobFinished returns whether or not a job has completed successfully or failed.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is a controller for CronJobs.
func NewController ¶
func NewController(kubeClient clientset.Interface) (*Controller, error)
NewController creates and initializes a new Controller.
func (*Controller) Run ¶
func (jm *Controller) Run(stopCh <-chan struct{})
Run starts the main goroutine responsible for watching and syncing jobs.
type ControllerV2 ¶
type ControllerV2 struct {
// contains filtered or unexported fields
}
ControllerV2 is a controller for CronJobs. Refactored Cronjob controller that uses DelayingQueue and informers
func NewControllerV2 ¶
func NewControllerV2(jobInformer batchv1informers.JobInformer, cronJobsInformer batchv1informers.CronJobInformer, kubeClient clientset.Interface) (*ControllerV2, error)
NewControllerV2 creates and initializes a new Controller.
func (*ControllerV2) Run ¶
func (jm *ControllerV2) Run(workers int, stopCh <-chan struct{})
Run starts the main goroutine responsible for watching and syncing jobs.
Source Files ¶
cronjob_controller.go cronjob_controllerv2.go doc.go injection.go utils.go
Directories ¶
Path | Synopsis |
---|---|
pkg/controller/cronjob/config | |
pkg/controller/cronjob/config/v1alpha1 | |
pkg/controller/cronjob/metrics |
- Version
- v1.21.13-rc.0
- Published
- Apr 13, 2022
- Platform
- js/wasm
- Imports
- 31 packages
- Last checked
- 55 seconds ago –
Tools for package owners.