scheduledjob

package
v1.4.2-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package scheduledjob contains the controller for ScheduledJob objects.

Index

Constants

View Source
const (
	CreatedByAnnotation = "kubernetes.io/created-by"
)

Variables

This section is empty.

Functions

func SyncOne

func SyncOne(sj batch.ScheduledJob, js []batch.Job, now time.Time, jc jobControlInterface, sjc sjControlInterface, pc podControlInterface, recorder record.EventRecorder)

SyncOne reconciles a ScheduledJob with a list of any Jobs that it created. All known jobs created by "sj" should be included in "js". The current time is passed in to facilitate testing. It has no receiver, to facilitate testing.

Types

type ScheduledJobController

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

func NewScheduledJobController

func NewScheduledJobController(kubeClient *client.Client) *ScheduledJobController

func NewScheduledJobControllerFromClient

func NewScheduledJobControllerFromClient(kubeClient *client.Client) *ScheduledJobController

func (*ScheduledJobController) Run

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

Run the main goroutine responsible for watching and syncing jobs.

func (*ScheduledJobController) SyncAll

func (jm *ScheduledJobController) SyncAll()

SyncAll lists all the ScheduledJobs and Jobs and reconciles them.

Jump to

Keyboard shortcuts

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