Documentation ¶
Overview ¶
Package job contains logic for watching and synchronizing jobs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultJobBackOff is the default backoff period. Exported for tests. DefaultJobBackOff = 10 * time.Second // MaxJobBackOff is the max backoff period. Exported for tests. MaxJobBackOff = 360 * time.Second // MaxUncountedPods is the maximum size the slices in // .status.uncountedTerminatedPods should have to keep their representation // roughly below 20 KB. Exported for tests MaxUncountedPods = 500 // MaxPodCreateDeletePerSync is the maximum number of pods that can be // created or deleted in a single sync call. Exported for tests. MaxPodCreateDeletePerSync = 500 )
Functions ¶
func IsJobFinished ¶ added in v1.4.0
IsJobFinished checks whether the given Job has finished execution. It does not discriminate between successful and failed terminations.
Types ¶
type Controller ¶ added in v1.19.0
type Controller struct {
// contains filtered or unexported fields
}
Controller ensures that all Job objects have corresponding pods to run their configured workload.
func NewController ¶ added in v1.19.0
func NewController(podInformer coreinformers.PodInformer, jobInformer batchinformers.JobInformer, kubeClient clientset.Interface) *Controller
NewController creates a new Job controller that keeps the relevant pods in sync with their corresponding Job objects.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.